Bug Report
Summary
The package suggests to require laminas/laminas-i18n with the following notice ^2.11, required when using laminas-form view helpers, but when using a Range Element the getValidators method instantiates a new Laminas\I18n\Validator\IsFloat.
Current behavior
How to reproduce
Make sure the suggested package is not installed:
composer remove laminas/laminas-i18n
Run this code:
$form = (new \Laminas\Form\Form())->add(
(new \Laminas\Form\Element\Range('range'))
->setAttributes(['min' => 1, 'max' => 10])
);
$form->getInputFilter(); // Class \"Laminas\\I18n\\Validator\\IsFloat\" not found
Bug Report
Summary
The package suggests to require
laminas/laminas-i18nwith the following notice^2.11, required when using laminas-form view helpers, but when using a Range Element thegetValidatorsmethod instantiates a newLaminas\I18n\Validator\IsFloat.Current behavior
How to reproduce
Make sure the suggested package is not installed:
Run this code: