Skip to content

Commit

Permalink
GH Actions: set error reporting to E_ALL
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jrfnl committed Aug 8, 2021
1 parent 71c5eb7 commit c84f7b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -19,6 +19,7 @@ jobs:
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl
ini-values: error_reporting=-1, display_errors=On
coverage: none

- name: Use Composer 1.x
Expand Down Expand Up @@ -46,6 +47,7 @@ jobs:
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl, sodium
ini-values: error_reporting=-1, display_errors=On
coverage: none

- name: Modernize dependencies
Expand Down

0 comments on commit c84f7b7

Please sign in to comment.