Skip to content

Commit 42f42a2

Browse files
authored
Merge pull request #190 from PHPCSStandards/feature/ghactions-show-startup-errors
GH Actions: update PHP ini configuration
2 parents 9c534c7 + fc7e781 commit 42f42a2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/quicktest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
uses: shivammathur/setup-php@v2
4444
with:
4545
php-version: ${{ matrix.php }}
46-
ini-values: error_reporting=-1, display_errors=On
46+
ini-values: error_reporting=-1, display_errors=On, display_startup_errors=On
4747
coverage: none
4848

4949
# Install dependencies and handle caching in one go.
@@ -124,9 +124,9 @@ jobs:
124124
id: set_ini
125125
run: |
126126
if [ "${{ contains( matrix.phpcs_version, 'dev' ) }}" != "true" ]; then
127-
echo 'PHP_INI=error_reporting=E_ALL & ~E_DEPRECATED, display_errors=On' >> "$GITHUB_OUTPUT"
127+
echo 'PHP_INI=error_reporting=E_ALL & ~E_DEPRECATED, display_errors=On, display_startup_errors=On' >> "$GITHUB_OUTPUT"
128128
else
129-
echo 'PHP_INI=error_reporting=-1, display_errors=On' >> "$GITHUB_OUTPUT"
129+
echo 'PHP_INI=error_reporting=-1, display_errors=On, display_startup_errors=On' >> "$GITHUB_OUTPUT"
130130
fi
131131
132132
- name: Install PHP

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
uses: shivammathur/setup-php@v2
4747
with:
4848
php-version: ${{ matrix.php }}
49-
ini-values: error_reporting=-1, display_errors=On
49+
ini-values: error_reporting=-1, display_errors=On, display_startup_errors=On
5050
coverage: none
5151
tools: cs2pr
5252

@@ -170,9 +170,9 @@ jobs:
170170
# On stable PHPCS versions, allow for PHP deprecation notices.
171171
# Unit tests don't need to fail on those for stable releases where those issues won't get fixed anymore.
172172
if [ "${{ contains( matrix.phpcs_version, 'dev' ) }}" != "true" ]; then
173-
echo 'PHP_INI=error_reporting=E_ALL & ~E_DEPRECATED, display_errors=On' >> "$GITHUB_OUTPUT"
173+
echo 'PHP_INI=error_reporting=E_ALL & ~E_DEPRECATED, display_errors=On, display_startup_errors=On' >> "$GITHUB_OUTPUT"
174174
else
175-
echo 'PHP_INI=error_reporting=-1, display_errors=On' >> "$GITHUB_OUTPUT"
175+
echo 'PHP_INI=error_reporting=-1, display_errors=On, display_startup_errors=On' >> "$GITHUB_OUTPUT"
176176
fi
177177
178178
- name: Install PHP

.github/workflows/update-website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
uses: shivammathur/setup-php@v2
5757
with:
5858
php-version: 'latest'
59-
ini-values: error_reporting=-1, display_errors=On, log_errors_max_len=0
59+
ini-values: error_reporting=-1, display_errors=On, display_startup_errors=On, log_errors_max_len=0
6060
coverage: none
6161

6262
- name: Prepare the files which will be deployed to the GH Pages website

0 commit comments

Comments
 (0)