-
Notifications
You must be signed in to change notification settings - Fork 44
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
[BUGFIX] Explicitly declare nullable function parameters #1505
Conversation
I expect that there are more nullable types which should be declared explicitly, but until now only the 3 locations which are fixed here triggered warnings in my tests. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1505 +/- ##
============================
============================
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
These code lines need similar fixes:
|
PHP 7.1 added support for nullable types, but they could be declared implicitly. PHP 8.4 deprecates implicitly nullable types. Using an explicit declaration avoids several warnings with PHP 8.4. Signed-off-by: Stefan Weil <sw@weilnetz.de>
Co-authored-by: Stefan Weil <sw@weilnetz.de>
Since you identified more files which need adjustments: should I wait for you to fix those as well or do you want to open separate PRs for those? |
No, please merge. I currently struggle with the broken viewer which is much more important (see #1536 (comment)). |
PHP 7.1 added support for nullable types, but they could be declared implicitly. PHP 8.4 deprecates implicitly nullable types.
Using an explicit declaration avoids several warnings with PHP 8.4.