Closed Tsaukpaetra closed 1 year ago
https://github.com/Respect/Validation/blob/3dcd859d986f1b586b5539ea19962723ab7352ed/library/Rules/IntVal.php#L39
Getting a warning in PHP 8 that null types will be coerced into strings.
Should there be a null guard around this, or should I actually be pre-guarding it with a Not Null rule higher in the chain?
Eek, I have sinned. This is a duplicate of #1391
https://github.com/Respect/Validation/blob/3dcd859d986f1b586b5539ea19962723ab7352ed/library/Rules/IntVal.php#L39
Getting a warning in PHP 8 that null types will be coerced into strings.
Should there be a null guard around this, or should I actually be pre-guarding it with a Not Null rule higher in the chain?