Skip to content

Commit 564b61f

Browse files
committed
Fail on direct deprecations
1 parent f714211 commit 564b61f

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
@@ -3,6 +3,7 @@
33
<!-- https://docs.phpunit.de/en/11.5/configuration.html -->
44
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
6+
failOnDeprecation="true"
67
failOnNotice="true"
78
failOnWarning="true"
89
colors="true"
@@ -21,11 +22,16 @@
2122
</testsuite>
2223
</testsuites>
2324

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

32+
<deprecationTrigger>
33+
<function>trigger_deprecation</function>
34+
</deprecationTrigger>
2935
</source>
3036

3137
<extensions>

0 commit comments

Comments
 (0)