Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ip rule: Fix check whether start and end address have been set #1375

Merged
merged 1 commit into from
Jan 19, 2022

Conversation

fabacino
Copy link
Contributor

Fixes the following phpstan error (output abbreviated for clearity):

Run vendor/bin/phpstan analyze
Note: Using configuration file /home/runner/work/Validation/Validation/phpstan.neon.dist.

 ------ ---------------------------------- 
  Line   library/Rules/Ip.php              
 ------ ---------------------------------- 
  108    Right side of && is always true.  
 ------ ---------------------------------- 

I did not add a new test because due to the way the two variables are initialized, there is actually no possibility for startAddress to be null and endAddress to be set simultaneously.

@nickl-
Copy link
Member

nickl- commented Jan 19, 2022

Well spotted Thanx!!

@nickl- nickl- merged commit 4847fe4 into Respect:2.2 Jan 19, 2022
@fabacino fabacino deleted the bugfix/fix-ip-rule-check branch January 19, 2022 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants