Skip to content

Commit 8f73cbd

Browse files
minor #63750 Configure deprecation triggers (derrabus)
This PR was merged into the 7.4 branch. Discussion ---------- Configure deprecation triggers | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | N/A | License | MIT By configuring deprecation triggers in PHPUnit, we enable PHPUnit to be more precise about where an observed deprecation warning originates. #### Before <img width="645" height="237" alt="Bildschirmfoto 2026-03-24 um 14 16 33" src="https://github.com/user-attachments/assets/f44556b8-0ade-4c56-9e59-be5443a439fb" /> #### After <img width="732" height="226" alt="Bildschirmfoto 2026-03-24 um 14 17 23" src="https://github.com/user-attachments/assets/dbdc0a8e-b129-440d-93f9-ff813611f42b" /> Commits ------- 1252f4ef7bb Configure deprecation triggers
2 parents feb650d + 905e416 commit 8f73cbd

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

phpunit.xml.dist

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

33
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.3/phpunit.xsd"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd"
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
@@ -20,6 +20,11 @@
2020
</testsuites>
2121

2222
<source ignoreSuppressionOfDeprecations="true">
23+
<deprecationTrigger>
24+
<function>trigger_deprecation</function>
25+
<method>Doctrine\Deprecations\Deprecation::trigger</method>
26+
<method>Doctrine\Deprecations\Deprecation::triggerIfCalledFromOutside</method>
27+
</deprecationTrigger>
2328
<include>
2429
<directory>./</directory>
2530
</include>

0 commit comments

Comments
 (0)