1
0
Fork 0

GH Actions: set error reporting to E_ALL

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.
pull/9979/head
jrfnl 2021-06-21 21:01:08 +02:00
parent 9a32bf9709
commit 617d63f40a
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ jobs:
with: with:
coverage: "none" coverage: "none"
extensions: "intl, zip" extensions: "intl, zip"
ini-values: "memory_limit=-1, phar.readonly=0" ini-values: "memory_limit=-1, phar.readonly=0, error_reporting=E_ALL, display_errors=On"
php-version: "${{ matrix.php-version }}" php-version: "${{ matrix.php-version }}"
tools: composer tools: composer

View File

@ -29,7 +29,7 @@ jobs:
with: with:
coverage: "none" coverage: "none"
extensions: "intl" extensions: "intl"
ini-values: "memory_limit=-1" ini-values: "memory_limit=-1, error_reporting=E_ALL, display_errors=On"
php-version: "${{ matrix.php-version }}" php-version: "${{ matrix.php-version }}"
- name: "Lint PHP files" - name: "Lint PHP files"