Skip to content

Commit e80d321

Browse files
jrfnlgrogy
authored andcommitted
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.
1 parent 761f380 commit e80d321

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: .github/workflows/test.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
php-version: 5.4
4949
extensions: exif, phar, openssl
5050
coverage: none
51-
ini-values: phar.readonly=Off
51+
ini-values: phar.readonly=Off, error_reporting=E_ALL, display_errors=On
5252

5353
- name: Install Box from GitHub
5454
run: |
@@ -106,6 +106,7 @@ jobs:
106106
uses: shivammathur/setup-php@v2
107107
with:
108108
php-version: ${{ matrix.php }}
109+
ini-values: error_reporting=E_ALL, display_errors=On
109110
coverage: none
110111

111112
# Remove PHPCS as it has a minimum PHP requirements of PHP 5.4 and would block install on PHP 5.3.

0 commit comments

Comments
 (0)