Skip to content

Commit 217753f

Browse files
committed
Fail on direct deprecations
1 parent d338a8d commit 217753f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

phpunit.xml.dist

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
66
backupGlobals="false"
7+
failOnDeprecation="true"
78
colors="true"
89
bootstrap="tests/bootstrap.php"
910
>
@@ -20,11 +21,16 @@
2021
</testsuite>
2122
</testsuites>
2223

23-
<source>
24+
<source ignoreSuppressionOfDeprecations="true"
25+
ignoreIndirectDeprecations="true"
26+
>
2427
<include>
2528
<directory suffix=".php">src</directory>
2629
</include>
2730

31+
<deprecationTrigger>
32+
<function>trigger_deprecation</function>
33+
</deprecationTrigger>
2834
</source>
2935

3036
<extensions>

0 commit comments

Comments
 (0)