Commit ae9f9dcd authored by joriot221's avatar joriot221
Browse files

Correction pas besoin du if le return renvoie un booléen lors de la comparaison

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