| 1 | <?php |
||
| 12 | trait FloatValidatorTrait |
||
| 13 | { |
||
| 14 | /** @var UIValidationEngine */ |
||
| 15 | protected $validationEngine; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Exceptions are caught in order to be processed later |
||
| 19 | * @param mixed $value Float ? |
||
| 20 | * |
||
| 21 | * @return float Value casted into float or -1 |
||
| 22 | */ |
||
| 23 | public function mustBeFloat($value, string $propertyPath = null, UIValidatorInterface $parentValidator = null, string $exceptionMessage = null): float |
||
| 58 | } |
||
| 59 |
It seems like you are assigning to a variable which was imported through a
usestatement which was not imported by reference.For clarity, we suggest to use a different name or import by reference depending on whether you would like to have the change visibile in outer-scope.
Change not visible in outer-scope
Change visible in outer-scope