Skip to content

GH Actions: turn display_errors on#1290

Merged
wimg merged 1 commit intodevelopfrom
feature/ghactions-turn-on-error-reporting
Jun 21, 2021
Merged

GH Actions: turn display_errors on#1290
wimg merged 1 commit intodevelopfrom
feature/ghactions-turn-on-error-reporting

Conversation

@jrfnl
Copy link
Copy Markdown
Member

@jrfnl jrfnl commented Jun 21, 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.

In our script, we already enabled error_reporting, but the error display was not yet fixed. Sorted now.

@jrfnl jrfnl added Type: chores/QA PR: quick merge PR only contains relatively simple changes PR: ready for review labels Jun 21, 2021
@jrfnl jrfnl added this to the 10.0.0 milestone Jun 21, 2021
@jrfnl jrfnl requested a review from wimg June 21, 2021 20:32
@wimg wimg enabled auto-merge June 21, 2021 20:38
@jrfnl jrfnl force-pushed the feature/ghactions-turn-on-error-reporting branch from 9d1e1bb to 2fac844 Compare June 21, 2021 20:39
@jrfnl
Copy link
Copy Markdown
Member Author

jrfnl commented Jun 21, 2021

@wimg Wow, that was quick. While you reviewed, I found some more places it should be enabled in our script, so I updated the commit (twice more) 🙈

@jrfnl jrfnl force-pushed the feature/ghactions-turn-on-error-reporting branch from 2fac844 to e11170d Compare June 21, 2021 20:42
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.

In our script, we already enabled error_reporting, but the error display was not yet fixed. Sorted now.
@jrfnl jrfnl force-pushed the feature/ghactions-turn-on-error-reporting branch from e11170d to 0a585fb Compare June 21, 2021 20:43
@jrfnl
Copy link
Copy Markdown
Member Author

jrfnl commented Jun 21, 2021

Note: The lint failure on PHP 8.1 is unrelated to our code, but due to an issue in the PHP Parallel Lint repo. I've opened a PR there to fix that: php-parallel-lint/PHP-Parallel-Lint#64

@wimg wimg merged commit 335cd6b into develop Jun 21, 2021
@wimg wimg deleted the feature/ghactions-turn-on-error-reporting branch June 21, 2021 21:03
@jrfnl jrfnl removed PR: ready for review PR: quick merge PR only contains relatively simple changes labels Jun 22, 2021
@jrfnl jrfnl mentioned this pull request Dec 23, 2021
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