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

GH Actions: set error reporting to E_ALL #4715

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Jun 22, 2021

Turns out the default setting for error_reporting used by the SetupPHP action is error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT and display_errors is set to Off.

For the purposes of CI, I'd recommend running with E_ALL and display_errors=On to ensure all PHP notices are shown.

Ref:

Turns out the default setting for `error_reporting` used by the SetupPHP action is `error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT` and `display_errors` is set to `Off`.

For the purposes of CI, I'd recommend running with `E_ALL` and `display_errors=On` to ensure **all** PHP notices are shown.

Ref:
* shivammathur/setup-php#469
* shivammathur/setup-php#450
@sebastianbergmann sebastianbergmann merged commit 17a977b into sebastianbergmann:8.5 Jun 22, 2021
@sebastianbergmann
Copy link
Owner

Thank you for bringing this to my attention. I have tweaked the configuration even more, see 7bf93db and 35ba7a5.

@jrfnl jrfnl deleted the feature/ghactions-turn-on-error-reporting branch June 22, 2021 05:03
@jrfnl
Copy link
Contributor Author

jrfnl commented Jun 22, 2021

Happy to help, figured you'd want to be aware of this.

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.

None yet

2 participants