-
Notifications
You must be signed in to change notification settings - Fork 821
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
DOC Surpress deprecation warnings on php7.4 #10043
DOC Surpress deprecation warnings on php7.4 #10043
Conversation
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.
Should use the [warning]
syntax.
``` | ||
Running CMS3 with PHP 7.4 will trigger a number of deprecation warnings. | ||
It's highly recommended you disable deprecation warnings. | ||
For instance on a dev environment add the following to the bottom of _ss_environment.php | ||
error_reporting(E_ALL & ~E_DEPRECATED); | ||
``` |
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.
``` | |
Running CMS3 with PHP 7.4 will trigger a number of deprecation warnings. | |
It's highly recommended you disable deprecation warnings. | |
For instance on a dev environment add the following to the bottom of _ss_environment.php | |
error_reporting(E_ALL & ~E_DEPRECATED); | |
``` | |
[warning] | |
Running CMS3 with PHP 7.4 triggers a number of deprecation warnings. | |
It's highly recommended you disable deprecation warnings. | |
For example, you can add the following to the bottom of your `_ss_environment.php` file: | |
`error_reporting(E_ALL & ~E_DEPRECATED);` | |
Read the [`error_reporting` PHP documentation](https://www.php.net/manual/en/function.error-reporting.php) | |
[/warning] |
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.
Updated
e991248
to
5018f44
Compare
Issue https://github.com/silverstripeltd/product-issues/issues/437