-
Notifications
You must be signed in to change notification settings - Fork 0
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
PHP 8.1 deprecation notices #3
PHP 8.1 deprecation notices #3
Conversation
|
683ed9a
to
b5818be
Compare
Rebased to your fork. Still some work to do.
|
Codecov Report
@@ Coverage Diff @@
## master #3 +/- ##
============================================
- Coverage 60.88% 60.79% -0.09%
- Complexity 508 510 +2
============================================
Files 16 16
Lines 1153 1153
============================================
- Hits 702 701 -1
- Misses 451 452 +1
Continue to review full report at Codecov.
|
I'm not sure what to do instead of null in |
I think an empty string is best as that replicates the deprecated behaviour. Whether or not that's correct from a Horde perspective I'm not sure. |
The output is clean now |
As of PHP8.1 many string functions do not accept null anymore. Therefore more explicit null checks or alternative functions need to be used. Signed-off-by: Christoph Wurst <[email protected]>
256caaa
to
366515a
Compare
@bytestream thanks a lot for the merge. May I ask you to tag a new release for the latest changes on master? |
@ChristophWurst one step ahead of you - https://packagist.org/packages/bytestream/horde-mail |
You're the best! |
As of PHP8.1 many string functions do not accept null anymore. Therefore
more explicit null checks or alternative functions need to be used.
The errors I found are the following:
I'm putting this as draft as I plan to have another look tomorrow. I'm not confident about all of the changes.