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

Fix E_DEPRECATED warning in IntVal rule on PHP 8.1 #1374

Closed fabacino closed 2 years ago

fabacino commented 2 years ago

Fixes https://github.com/Respect/Validation/issues/1373

codecov-commenter commented 2 years ago

Codecov Report

Merging #1374 (78ec49c) into master (3dcd859) will increase coverage by 0.19%. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1374      +/-   ##
============================================
+ Coverage     95.77%   95.97%   +0.19%     
+ Complexity      948      946       -2     
============================================
  Files           191      190       -1     
  Lines          2014     2010       -4     
============================================
  Hits           1929     1929              
+ Misses           85       81       -4     
Impacted Files Coverage Δ
library/Rules/IntVal.php 100.00% <100.00%> (ø)
library/Exceptions/NullableException.php

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 3dcd859...78ec49c. Read the comment docs.

fabacino commented 2 years ago

I've created another PR to fix the phpstan error which shows up here but is unrelated to the changes made in this PR https://github.com/Respect/Validation/pull/1375