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/tests: set error reporting to display all notices #105

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Oct 1, 2024

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 -1 (always include all error levels on all PHP versions) and display_errors=On to ensure all PHP notices are shown.

This is now fixed by adding the ini-values setting to setup-php.

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 `-1` (always include all error levels on all PHP versions) and `display_errors=On` to ensure **all** PHP notices are shown.

This is now fixed by adding the `ini-values` setting to `setup-php`.
@jrfnl jrfnl requested a review from a team as a code owner October 1, 2024 11:17
@swissspidy swissspidy merged commit 031b57f into wp-cli:main Oct 1, 2024
7 checks passed
@jrfnl jrfnl deleted the feature/tests-enable-error-reporting branch October 1, 2024 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants