Skip to content

Commit ced53a3

Browse files
mbabkerphansys
authored andcommitted
Add a deprecations baseline to ignore selected deprecations in tests
1 parent 46ac905 commit ced53a3

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"rector/rector": "^2.0.6",
6969
"symfony/console": "^5.4 || ^6.0 || ^7.0",
7070
"symfony/doctrine-bridge": "^5.4 || ^6.0 || ^7.0",
71-
"symfony/phpunit-bridge": "^6.0 || ^7.0",
71+
"symfony/phpunit-bridge": "^6.4 || ^7.0",
7272
"symfony/uid": "^5.4 || ^6.0 || ^7.0",
7373
"symfony/yaml": "^5.4 || ^6.0 || ^7.0"
7474
},

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
</testsuite>
6868
</testsuites>
6969
<php>
70-
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0" />
70+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="ignoreFile=./tests/symfony-deprecations-baseline&amp;max[self]=0" />
7171
<env name="MONGODB_SERVER" value="mongodb://mongodb:27017"/>
7272
</php>
7373
<listeners>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Ignore MongoDB deprecations from low dependencies
2+
%Passing an integer mode to "MongoDB\\Driver\\ReadPreference::__construct" is deprecated%
3+
# Ignore deprecated ORM 2.x proxies
4+
%class implements "Doctrine\\ORM\\Proxy\\Proxy" that is deprecated%
5+
# Ignore symfony/var-dumper lazy ghost deprecations (required for PHP 8.3 and earlier compat)
6+
%Using ProxyHelper::generateLazyGhost() is deprecated%

0 commit comments

Comments
 (0)