Skip to content

Commit 5597f66

Browse files
committed
GH Actions/tests: set error reporting to display all notices
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`.
1 parent 2fc4bbd commit 5597f66

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/reusable-testing.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ jobs:
226226
uses: shivammathur/setup-php@v2
227227
with:
228228
php-version: '${{ matrix.php }}'
229+
ini-values: zend.assertions=1, error_reporting=-1, display_errors=On
229230
coverage: none
230231
tools: composer,cs2pr
231232
env:
@@ -297,6 +298,7 @@ jobs:
297298
uses: shivammathur/setup-php@v2
298299
with:
299300
php-version: '${{ matrix.php }}'
301+
ini-values: zend.assertions=1, error_reporting=-1, display_errors=On
300302
extensions: gd, imagick, mysql, zip
301303
coverage: none
302304
tools: composer

0 commit comments

Comments
 (0)