Skip to content

Commit 24708b5

Browse files
authored
Merge pull request #47 from patrickbussmann/main
Fixed issue with ValidationListener
2 parents 6422b71 + 1fd8962 commit 24708b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Extension/Validation/ValidationListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ protected function getByDotted(FormInterface $form, $name)
132132
*/
133133
protected function addTypeRules(FormTypeInterface $type, array $rules)
134134
{
135-
if (($type instanceof NumberType || $type instanceof IntegerType)
135+
if (($type instanceof IntegerType)
136136
&& !in_array('numeric', $rules)
137137
) {
138138
$rules[] = 'numeric';

0 commit comments

Comments
 (0)