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 564b61f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 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,16 @@
</testsuite>
</testsuites>

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

<deprecationTrigger>
<function>trigger_deprecation</function>
</deprecationTrigger>
</source>

<extensions>
Expand Down

0 comments on commit 564b61f

Please sign in to comment.