Skip to content

Commit 190f09e

Browse files
committed
Fail on direct deprecations
1 parent 3439084 commit 190f09e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

phpunit.xml.dist

+9-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,18 @@
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+
<method>Doctrine\Deprecations\Deprecation::trigger</method>
35+
<method>Doctrine\Deprecations\Deprecation::delegateTriggerToBackend</method>
36+
</deprecationTrigger>
2937
</source>
3038

3139
<extensions>

0 commit comments

Comments
 (0)