We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
FakeAccess update idsite comparison for all to strict
https://github.com/matomo-org/matomo/blob/4.x-dev/tests/PHPUnit/Framework/Mock/FakeAccess.php#L169 '0' == 'all' should return false, but returns true for PHP version < 8
It should return false since we have a strict check when not testing via FakeAccess
'0' == 'all' is returning true for PHP versions < 7
change the condition to $idSites === 'all' in https://github.com/matomo-org/matomo/blob/4.x-dev/tests/PHPUnit/Framework/Mock/FakeAccess.php#L169
This bug breaks test cases when running on php8
The text was updated successfully, but these errors were encountered:
Fixed fake acess check when idsite=0, #18115
f33954e
Fixed fake acess check when idsite=0, #18115 (#18116)
f15bd27
Successfully merging a pull request may close this issue.
FakeAccess update idsite comparison for all to strict
Expected Behavior
https://github.com/matomo-org/matomo/blob/4.x-dev/tests/PHPUnit/Framework/Mock/FakeAccess.php#L169
'0' == 'all' should return false, but returns true for PHP version < 8
It should return false since we have a strict check when not testing via FakeAccess
Current Behavior
'0' == 'all' is returning true for PHP versions < 7
Possible Solution
change the condition to $idSites === 'all' in https://github.com/matomo-org/matomo/blob/4.x-dev/tests/PHPUnit/Framework/Mock/FakeAccess.php#L169
Steps to Reproduce (for Bugs)
Context
This bug breaks test cases when running on php8
Your Environment
The text was updated successfully, but these errors were encountered: