Skip to content

Commit a693b9e

Browse files
committed
GH Actions: update PHP ini configuration
Add `display_startup_errors=On` and `assert.exception=1` as per the current recommendation from PHPUnit. Ref: * sebastianbergmann/phpunit-documentation-english@b3b159c * https://docs.phpunit.de/en/12.5/installation.html#configuring-php-for-development
1 parent 7eed12d commit a693b9e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
uses: shivammathur/setup-php@v2
9292
with:
9393
php-version: ${{ matrix.php_version }}
94-
ini-values: zend.assertions=1, error_reporting=-1, display_errors=On
94+
ini-values: zend.assertions=1, assert.exception=1, error_reporting=-1, display_errors=On, display_startup_errors=On
9595
coverage: none
9696
tools: cs2pr
9797

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
uses: shivammathur/setup-php@v2
9494
with:
9595
php-version: ${{ matrix.php_version }}
96-
ini-values: zend.assertions=1, error_reporting=-1, display_errors=On
96+
ini-values: zend.assertions=1, assert.exception=1, error_reporting=-1, display_errors=On, display_startup_errors=On
9797
coverage: ${{ matrix.coverage == true && 'xdebug' || 'none' }}
9898

9999
# Install dependencies and handle caching in one go.
@@ -195,7 +195,7 @@ jobs:
195195
uses: shivammathur/setup-php@v2
196196
with:
197197
php-version: ${{ matrix.php_version }}
198-
ini-values: zend.assertions=1, error_reporting=-1, display_errors=On
198+
ini-values: zend.assertions=1, assert.exception=1, error_reporting=-1, display_errors=On, display_startup_errors=On
199199
coverage: ${{ matrix.coverage == true && 'xdebug' || 'none' }}
200200

201201
# Install dependencies and handle caching in one go.

0 commit comments

Comments
 (0)