-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Resolving PHP 8.0 warnings #14664
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
Resolving PHP 8.0 warnings #14664
Conversation
…-10875_MAUT-10883_MAUT-10887_MAUT-10922_MAUT-8624 Fix warnings for PHP8.0 upgrade
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @escopecz! The code changes look good.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 6.x #14664 +/- ##
=========================================
Coverage 64.67% 64.67%
Complexity 34675 34675
=========================================
Files 2273 2273
Lines 103593 103596 +3
=========================================
+ Hits 66994 66996 +2
- Misses 36599 36600 +1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested , working fine
Description
This PR resolves several PHP warnings that we could see in our logs. Such as:
The changes here are checking if the variable is type of the PHP function expect to avoid these warnings.
📋 Steps to test this PR:
We don't have a steps to test per se as this PR is resolving warnings from logs. But based on the code changes we can test:
bin/console mautic:segments:stat
All these actions are tested by existing functional tests.