auraphp / Aura.Filter

Validate and sanitize arrays and objects.
MIT License
159 stars 33 forks source link

Arise PHP Notice when I try to sanitize #132

Closed PhantomArt closed 7 years ago

PhantomArt commented 7 years ago
$filter->sanitize('value')->to('int')->useBlankValue(0);
$subject = ['value' => 'abc'];
$filter->apply($subject);
PHP Notice: Uninitialized string offset: 0 in aura\filter\src\Rule\Sanitize\Integer.php on line 66
harikt commented 7 years ago

@PhantomArt Thank you for the report.

Fixed in #133 . Will wait for review.

harikt commented 7 years ago

Fixed in 2.3.1 : https://github.com/auraphp/Aura.Filter/releases/tag/2.3.1