Skip to content

Commit

Permalink
Fail on direct deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Dec 13, 2024
1 parent f714211 commit 7162991
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- https://docs.phpunit.de/en/11.5/configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
failOnDeprecation="true"
failOnNotice="true"
failOnWarning="true"
colors="true"
Expand All @@ -21,11 +22,18 @@
</testsuite>
</testsuites>

<source>
<source ignoreSuppressionOfDeprecations="true"
ignoreIndirectDeprecations="true"
>
<include>
<directory suffix=".php">src</directory>
</include>

<deprecationTrigger>
<function>trigger_deprecation</function>
<method>Doctrine\Deprecations\Deprecation::trigger</method>
<method>Doctrine\Deprecations\Deprecation::delegateTriggerToBackend</method>
</deprecationTrigger>
</source>

<extensions>
Expand Down

0 comments on commit 7162991

Please # to comment.