Skip to content

Commit b6b342c

Browse files
committed
Merge remote-tracking branch 'origin/3.5.x' into 3.6.x
2 parents bea4814 + 28735af commit b6b342c

File tree

8 files changed

+30
-59
lines changed

8 files changed

+30
-59
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ build.properties.dev export-ignore
1111
build.xml export-ignore
1212
CONTRIBUTING.md export-ignore
1313
phpunit.xml.dist export-ignore
14-
run-all.sh export-ignore
1514
phpcs.xml.dist export-ignore
1615
phpbench.json export-ignore
1716
phpstan.neon export-ignore

.github/workflows/continuous-integration.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979

8080
steps:
8181
- name: "Checkout"
82-
uses: "actions/checkout@v4"
82+
uses: "actions/checkout@v5"
8383
with:
8484
fetch-depth: 2
8585

@@ -171,7 +171,7 @@ jobs:
171171

172172
steps:
173173
- name: "Checkout"
174-
uses: "actions/checkout@v4"
174+
uses: "actions/checkout@v5"
175175
with:
176176
fetch-depth: 2
177177

@@ -238,7 +238,7 @@ jobs:
238238

239239
steps:
240240
- name: "Checkout"
241-
uses: "actions/checkout@v4"
241+
uses: "actions/checkout@v5"
242242
with:
243243
fetch-depth: 2
244244

@@ -313,7 +313,7 @@ jobs:
313313

314314
steps:
315315
- name: "Checkout"
316-
uses: "actions/checkout@v4"
316+
uses: "actions/checkout@v5"
317317
with:
318318
fetch-depth: 2
319319

@@ -363,12 +363,12 @@ jobs:
363363

364364
steps:
365365
- name: "Checkout"
366-
uses: "actions/checkout@v4"
366+
uses: "actions/checkout@v5"
367367
with:
368368
fetch-depth: 2
369369

370370
- name: "Download coverage files"
371-
uses: "actions/download-artifact@v4"
371+
uses: "actions/download-artifact@v5"
372372
with:
373373
path: "reports"
374374

.github/workflows/phpbench.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
steps:
3838
- name: "Checkout"
39-
uses: "actions/checkout@v4"
39+
uses: "actions/checkout@v5"
4040
with:
4141
fetch-depth: 2
4242

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
steps:
3737
- name: "Checkout code"
38-
uses: "actions/checkout@v4"
38+
uses: "actions/checkout@v5"
3939

4040
- name: Install PHP
4141
uses: shivammathur/setup-php@v2

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@
4141
"phpbench/phpbench": "^1.0",
4242
"phpdocumentor/guides-cli": "^1.4",
4343
"phpstan/extension-installer": "^1.4",
44-
"phpstan/phpstan": "2.0.3",
44+
"phpstan/phpstan": "2.1.22",
4545
"phpstan/phpstan-deprecation-rules": "^2",
4646
"phpunit/phpunit": "^10.4.0",
4747
"psr/log": "^1 || ^2 || ^3",
48-
"squizlabs/php_codesniffer": "3.12.0",
48+
"squizlabs/php_codesniffer": "3.13.2",
4949
"symfony/cache": "^5.4 || ^6.2 || ^7.0 || ^8.0"
5050
},
5151
"suggest": {

phpstan-baseline.neon

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
parameters:
22
ignoreErrors:
3-
-
4-
message: '#^Expression "\$setCacheEntry\(\$data\)" on a separate line does not do anything\.$#'
5-
identifier: expr.resultUnused
6-
count: 1
7-
path: src/AbstractQuery.php
8-
9-
-
10-
message: '#^Expression "\$setCacheEntry\(\$stmt\)" on a separate line does not do anything\.$#'
11-
identifier: expr.resultUnused
12-
count: 1
13-
path: src/AbstractQuery.php
14-
153
-
164
message: '#^Method Doctrine\\ORM\\AbstractQuery\:\:getParameter\(\) should return Doctrine\\ORM\\Query\\Parameter\|null but returns Doctrine\\ORM\\Query\\Parameter\|false\|null\.$#'
175
identifier: return.type
@@ -234,12 +222,6 @@ parameters:
234222
count: 1
235223
path: src/Cache/DefaultQueryCache.php
236224

237-
-
238-
message: '#^Parameter \#1 \$result of class Doctrine\\ORM\\Cache\\QueryCacheEntry constructor expects array\<string, mixed\>, array\<int\|string, array\<string, array\<mixed\>\>\> given\.$#'
239-
identifier: argument.type
240-
count: 1
241-
path: src/Cache/DefaultQueryCache.php
242-
243225
-
244226
message: '#^Parameter \#2 \$key of method Doctrine\\ORM\\Cache\\Logging\\CacheLogger\:\:entityCacheHit\(\) expects Doctrine\\ORM\\Cache\\EntityCacheKey, Doctrine\\ORM\\Cache\\CacheKey given\.$#'
245227
identifier: argument.type
@@ -516,6 +498,12 @@ parameters:
516498
count: 1
517499
path: src/Cache/TimestampQueryCacheValidator.php
518500

501+
-
502+
message: '#^Call to function is_a\(\) with arguments class\-string\<Doctrine\\ORM\\EntityRepository\>, ''Doctrine\\\\ORM\\\\EntityRepository'' and true will always evaluate to true\.$#'
503+
identifier: function.alreadyNarrowedType
504+
count: 1
505+
path: src/Configuration.php
506+
519507
-
520508
message: '#^Method Doctrine\\ORM\\Configuration\:\:getDefaultRepositoryClassName\(\) return type with generic class Doctrine\\ORM\\EntityRepository does not specify its types\: T$#'
521509
identifier: missingType.generics
@@ -558,12 +546,6 @@ parameters:
558546
count: 1
559547
path: src/Decorator/EntityManagerDecorator.php
560548

561-
-
562-
message: '#^Call to an undefined method object\:\:setEntityManager\(\)\.$#'
563-
identifier: method.notFound
564-
count: 1
565-
path: src/EntityManager.php
566-
567549
-
568550
message: '#^Method Doctrine\\ORM\\EntityManager\:\:checkLockRequirements\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#'
569551
identifier: missingType.generics
@@ -714,6 +696,12 @@ parameters:
714696
count: 1
715697
path: src/Internal/Hydration/AbstractHydrator.php
716698

699+
-
700+
message: '#^Method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:gatherRowData\(\) should return array\{data\: array\<array\>, newObjects\?\: array\<array\{class\: ReflectionClass, args\: array, obj\: object\}\>, scalars\?\: array\} but returns array\{data\: array, newObjects\: array\<array\{class\: ReflectionClass\<object\>, args\: array, obj\?\: object\}\>, scalars\?\: non\-empty\-array\}\.$#'
701+
identifier: return.type
702+
count: 1
703+
path: src/Internal/Hydration/AbstractHydrator.php
704+
717705
-
718706
message: '#^Method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:getClassMetadata\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#'
719707
identifier: missingType.generics
@@ -733,13 +721,13 @@ parameters:
733721
path: src/Internal/Hydration/AbstractHydrator.php
734722

735723
-
736-
message: '#^Parameter &\$id by\-ref type of method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:gatherRowData\(\) expects array\<string, string\>, array\<int\|string, string\> given\.$#'
724+
message: '#^Parameter &\$id by\-ref type of method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:gatherRowData\(\) expects array\<string, string\>, array\<string\> given\.$#'
737725
identifier: parameterByRef.type
738726
count: 1
739727
path: src/Internal/Hydration/AbstractHydrator.php
740728

741729
-
742-
message: '#^Parameter &\$nonemptyComponents by\-ref type of method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:gatherRowData\(\) expects array\<string, bool\>, array\<int\|string, bool\> given\.$#'
730+
message: '#^Parameter &\$nonemptyComponents by\-ref type of method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:gatherRowData\(\) expects array\<string, bool\>, array\<bool\> given\.$#'
743731
identifier: parameterByRef.type
744732
count: 1
745733
path: src/Internal/Hydration/AbstractHydrator.php
@@ -1080,6 +1068,12 @@ parameters:
10801068
count: 1
10811069
path: src/Mapping/ClassMetadata.php
10821070

1071+
-
1072+
message: '#^Template type T is declared as covariant, but occurs in invariant position in return type of method Doctrine\\ORM\\Mapping\\ClassMetadata\:\:getReflectionClass\(\)\.$#'
1073+
identifier: generics.variance
1074+
count: 1
1075+
path: src/Mapping/ClassMetadata.php
1076+
10831077
-
10841078
message: '#^Unable to resolve the template type C in call to method Doctrine\\ORM\\Mapping\\ClassMetadata\<T of object\>\:\:fullyQualifiedClassName\(\)$#'
10851079
identifier: argument.templateType

run-all.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/Mapping/Driver/XmlDriver.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ public function loadMetadataForClass($className, PersistenceClassMetadata $metad
137137
];
138138

139139
if (isset($discrColumn['options'])) {
140-
assert($discrColumn['options'] instanceof SimpleXMLElement);
141140
$columnDef['options'] = $this->parseOptions($discrColumn['options']->children());
142141
}
143142

0 commit comments

Comments
 (0)