-
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
PHP8.4 deprecation notices fix attempt #1
base: develop
Are you sure you want to change the base?
Conversation
Changes not tested on php8.4 yet. But it should remove notices. Changes works on my php8.3 environment. |
Should probably bump the required PHP version to 7.1 if using nullable types. I personally don't care about anything < PHP 8.2, but I'm not sure if these PRs are supposed to be compatible with the PHP version mentioned in composer.json. |
Won't there still be deprecation notices in PHP 8.4 because |
On my fork I have bumped the minimum php version to 7.4. That's the reason I have not pushed this pull request to the main repository. |
Thanks for the heads up. I haven't tested my changes with PHP 8.4 yet; I've only researched and made the updates. I'll look into |
The |
Yup, that forces the params for <PHP9, but it will still trigger a deprecation error. CI4 gets around that in a different way |
At this point and assuming it stops the deprecation notice, I think I'd be tempted to simply prefix the |
After reviewing it, I believe you're right; it will still trigger the deprecation notice. I think it’s a good idea to add the @ symbol in front of ini_set. I will make that change and then test to see if it works. |
@NielBuys I was feeling brave and decided to go all-out in my branch and remove code supporting < PHP 7.4. It might benefit you and your repo. Comments welcome too! |
Thanks, I agree that it's a good idea to clean up some of the older PHP version code. I've created a patch file from your commit and will review it. I’ll let you know if I encounter any issues. |
Attempt to Fix below issues
bcit-ci#6302
bcit-ci#6300
bcit-ci#6300