Respect / Validation

The most awesome validation engine ever created for PHP
https://respect-validation.readthedocs.io
MIT License
5.76k stars 774 forks source link

IntVal: ctype_digit gives a deprecated notice in PHP 8.1 #1391

Closed andymilsted closed 1 year ago

andymilsted commented 1 year ago

PHP 8.1

DEPRECATED: ctype_digit(): Argument of type null will be interpreted as string in the future vendor/respect/validation/library/Rules/IntVal.php:39

fabioselau077 commented 1 year ago

Array and string offset access syntax with curly braces is no longer supported

soren121 commented 1 year ago

This was fixed months ago in the 2.2 branch by #1374, but the maintainers have not released an update.

You can require 2.2.x-dev in composer if you need the fix.

alganet commented 1 year ago

The fix for this is now released along with 2.2.4

https://github.com/Respect/Validation/releases/tag/2.2.4