Skip to content
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

feat(#46): get rid of (some) PHP deprecation warnings #47

Merged

Conversation

pesek
Copy link
Contributor

@pesek pesek commented Aug 18, 2023

This PR fixes some deprecation warnings that are appearing on PHP8 if you turn the E_USER_DEPRECATED error_reporting level ON.

The PR probably does not get rid of ALL the deprecation warnings, but it resolves at least some of them (the ones that seemed to occur on almost every page multiple times for us).

The changes should not change any functionality, only changing the code to bude up-to-date with PHP8 "stricter standards".

The motivation is to allow users of this php8 version of Cake2 to turn change the error_reporting to a level that includes the deprecation warning and to be able to clean up the manually written code of all deprecations without the report being too cluttered with warnings from the framework itself.

- use issets, default local var values, better/newer language constructs
@kamilwylegala
Copy link
Owner

Looks good. Thank you for your contribution! Merging.

@kamilwylegala kamilwylegala merged commit cc74b59 into kamilwylegala:master Aug 18, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants