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 12, 2024
1 parent c845758 commit 861a7b9
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 @@ -4,6 +4,7 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
failOnDeprecation="true"
colors="true"
bootstrap="tests/bootstrap.php"
>
Expand All @@ -20,11 +21,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 861a7b9

Please sign in to comment.