-
-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Labels
BugSomething isn't workingSomething isn't working
Description
Bug Report
Q | A |
---|---|
Version(s) | 3.0.1 |
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
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't working