Commit 3e76df3b authored by joriot221's avatar joriot221
Browse files

Correction erreur : type of int|float attendu et string given

parent 6dc433ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ class TypeInterventionSaisieForm extends AbstractForm
                    new \Laminas\Validator\Callback([
                        'messages' => [\Laminas\Validator\Callback::INVALID_VALUE => '%value% doit être >= 0'],
                        'callback' => function ($value) {
                            return (StringFromFloat::run($value) >= 0.0 ? true : false);
                            return (FloatFromString::run($value)) >= 0.0;
                        }]),
                ],
            ],