Skip to content

Commit 23c23c7

Browse files
committed
Suppress doctrine/collections related deprecations
We are correctly triggering these indirect issues ``` Remaining indirect deprecation notices (5) 1x: Method "ArrayAccess::offsetExists()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Doctrine\Common\Collections\ArrayCollection" now to avoid errors or add an explicit @return annotation to suppress this message. 1x in ServiceRepositoryTest::testRepositoryServiceWiring from Doctrine\Bundle\DoctrineBundle\Tests 1x: Method "ArrayAccess::offsetGet()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Doctrine\Common\Collections\ArrayCollection" now to avoid errors or add an explicit @return annotation to suppress this message. 1x in ServiceRepositoryTest::testRepositoryServiceWiring from Doctrine\Bundle\DoctrineBundle\Tests 1x: Method "ArrayAccess::offsetSet()" might add "void" as a native return type declaration in the future. Do the same in implementation "Doctrine\Common\Collections\ArrayCollection" now to avoid errors or add an explicit @return annotation to suppress this message. 1x in ServiceRepositoryTest::testRepositoryServiceWiring from Doctrine\Bundle\DoctrineBundle\Tests 1x: Method "ArrayAccess::offsetUnset()" might add "void" as a native return type declaration in the future. Do the same in implementation "Doctrine\Common\Collections\ArrayCollection" now to avoid errors or add an explicit @return annotation to suppress this message. 1x in ServiceRepositoryTest::testRepositoryServiceWiring from Doctrine\Bundle\DoctrineBundle\Tests 1x: Method "Countable::count()" might add "int" as a native return type declaration in the future. Do the same in implementation "Doctrine\Common\Collections\ArrayCollection" now to avoid errors or add an explicit @return annotation to suppress this message. 1x in ServiceRepositoryTest::testRepositoryServiceWiring from Doctrine\Bundle\DoctrineBundle\Tests ```
1 parent 06ab798 commit 23c23c7

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.github/workflows/test-dev-stability.yml

-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
runs-on: "ubuntu-20.04"
1212
env:
1313
SYMFONY_REQUIRE: ${{matrix.symfony-require}}
14-
SYMFONY_DEPRECATIONS_HELPER: ${{matrix.symfony-deprecations-helper}}
1514

1615
strategy:
1716
fail-fast: false
@@ -25,8 +24,6 @@ jobs:
2524
symfony-require:
2625
- ""
2726
- "6.*"
28-
symfony-deprecations-helper:
29-
- ""
3027

3128
steps:
3229
- name: "Checkout"

Tests/baseline-ignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
%Method "ArrayAccess::(offsetExists|offsetGet|offsetSet|offsetUnset)+\(\)" might add "\w+" as a native return type declaration in the future. Do the same in implementation "Doctrine\\\Common\\Collections\\ArrayCollection" now to avoid errors or add an explicit @return annotation to suppress this message\.%
2+
%Method "Countable::count\(\)" might add "int" as a native return type declaration in the future. Do the same in implementation "Doctrine\\Common\\Collections\\ArrayCollection" now to avoid errors or add an explicit @return annotation to suppress this message\.%

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"psalm/plugin-phpunit": "^0.16.1",
5353
"psalm/plugin-symfony": "^3",
5454
"psr/log": "^1.1.4 || ^2.0 || ^3.0",
55-
"symfony/phpunit-bridge": "^6.0",
55+
"symfony/phpunit-bridge": "^6.1",
5656
"symfony/property-info": "^4.4 || ^5.4 || ^6.0",
5757
"symfony/proxy-manager-bridge": "^4.4 || ^5.4 || ^6.0",
5858
"symfony/security-bundle": "^4.4 || ^5.4 || ^6.0",

phpunit.xml.dist

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
</testsuite>
88
</testsuites>
99

10+
<php>
11+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="ignoreFile=./tests/baseline-ignore"/>
12+
</php>
13+
1014
<filter>
1115
<whitelist>
1216
<directory>.</directory>

0 commit comments

Comments
 (0)