Skip to content

Commit 00960b7

Browse files
committed
GH Actions: update PHP ini configuration
Add `display_startup_errors=On` as per the current recommendation from PHPUnit. Ref: sebastianbergmann/phpunit-documentation-english@b3b159c
1 parent 64019be commit 00960b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ jobs:
103103
# On stable PHPCS versions, allow for PHP deprecation notices.
104104
# Unit tests don't need to fail on those for stable releases where those issues won't get fixed anymore.
105105
if [ "${{ matrix.phpcs_version }}" != "4.x-dev" ]; then
106-
echo 'PHP_INI=error_reporting=E_ALL & ~E_DEPRECATED, display_errors=On, zend.assertions=1' >> $GITHUB_OUTPUT
106+
echo 'PHP_INI=error_reporting=E_ALL & ~E_DEPRECATED, display_errors=On, display_startup_errors=On, zend.assertions=1' >> $GITHUB_OUTPUT
107107
else
108-
echo 'PHP_INI=error_reporting=-1, display_errors=On, zend.assertions=1' >> $GITHUB_OUTPUT
108+
echo 'PHP_INI=error_reporting=-1, display_errors=On, display_startup_errors=On, zend.assertions=1' >> $GITHUB_OUTPUT
109109
fi
110110
111111
- name: Install PHP
@@ -188,9 +188,9 @@ jobs:
188188
# On stable PHPCS versions, allow for PHP deprecation notices.
189189
# Unit tests don't need to fail on those for stable releases where those issues won't get fixed anymore.
190190
if [ "${{ matrix.phpcs_version }}" != "4.x-dev" ]; then
191-
echo 'PHP_INI=error_reporting=E_ALL & ~E_DEPRECATED, display_errors=On, zend.assertions=1' >> $GITHUB_OUTPUT
191+
echo 'PHP_INI=error_reporting=E_ALL & ~E_DEPRECATED, display_errors=On, display_startup_errors=On, zend.assertions=1' >> $GITHUB_OUTPUT
192192
else
193-
echo 'PHP_INI=error_reporting=-1, display_errors=On, zend.assertions=1' >> $GITHUB_OUTPUT
193+
echo 'PHP_INI=error_reporting=-1, display_errors=On, display_startup_errors=On, zend.assertions=1' >> $GITHUB_OUTPUT
194194
fi
195195
196196
- name: Install PHP

0 commit comments

Comments
 (0)