Skip to content

Commit a85d077

Browse files
authored
Update AjaxSelect.php
1 parent cf4cf01 commit a85d077

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/Form/AjaxSelect.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* <https://www.peldax.com>.
1111
*/
1212

13-
declare(strict_types=1);
13+
declare(strict_types = 1);
1414

1515
namespace Nepttune\Form;
1616

@@ -25,13 +25,4 @@ public function __construct(?string $label, callable $callback)
2525
$this->callback = $callback;
2626
parent::__construct($label);
2727
}
28-
29-
public function getValue()
30-
{
31-
if (!\in_array($this->value, [null, '', []], true)) {
32-
$this->setValue($this->value);
33-
}
34-
35-
return \array_key_exists($this->value, $this->getItems()) ? $this->value : null;
36-
}
3728
}

0 commit comments

Comments
 (0)