mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-10 07:41:05 +08:00
Removes unnecessary integerOnly option (#15546) [skip ci]
`integer` validator already has `'integerOnly' => true`.
This commit is contained in:
committed by
Alexander Makarov
parent
71c541773f
commit
3d27ab3463
@@ -221,7 +221,7 @@ values are stored in an attribute:
|
||||
```php
|
||||
['age', 'trim'],
|
||||
['age', 'default', 'value' => null],
|
||||
['age', 'integer', 'integerOnly' => true, 'min' => 0],
|
||||
['age', 'integer', 'min' => 0],
|
||||
['age', 'filter', 'filter' => 'intval', 'skipOnEmpty' => true],
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user