Skip to content

Commit

Permalink
GH Actions: set error reporting to -1
Browse files Browse the repository at this point in the history
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` and `display_errors=On` to ensure **all** PHP notices are shown.

Without this setting PHP 8.1 deprecation notices are not shown.
  • Loading branch information
jrfnl committed Aug 15, 2021
1 parent 9e3a5fc commit 2657911
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring
ini-values: error_reporting=-1, display_errors=On, log_errors_max_len=0

# Install dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-composer-dependencies
Expand Down

0 comments on commit 2657911

Please sign in to comment.