Skip to content

Commit 5a620de

Browse files
committed
ci: Fail tests on deprecation notices
1 parent 5a72a59 commit 5a620de

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/main.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
phpunit-versions: '8.5.15'
2626
experimental: false
2727
- php-versions: '8.1'
28-
phpunit-versions: '9.5.11'
28+
phpunit-versions: '9.5.14'
2929
experimental: false
3030

3131
# PHPUnit's dependencies do not support PHP 8.2 yet.
@@ -42,6 +42,8 @@ jobs:
4242
php-version: ${{ matrix.php-versions }}
4343
tools: composer, phpunit:${{ matrix.phpunit-versions }}
4444
coverage: xdebug
45+
# Report deprecation errors.
46+
ini-values: error_reporting=E_ALL
4547

4648
- name: Setup problem matchers for PHP
4749
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"

phpunit.xml.dist

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
convertErrorsToExceptions="true"
77
convertNoticesToExceptions="true"
88
convertWarningsToExceptions="true"
9+
convertDeprecationsToExceptions="true"
910
processIsolation="false">
1011

1112
<testsuites>

0 commit comments

Comments
 (0)