Skip to content

Commit 18d07a1

Browse files
committed
Merge branch '2.20.x' into 2.21.x
* 2.20.x: Remove calls to getMockForAbstractClass() (#12003) Upgrade to doctrine/coding-standard 14 Bump doctrine/.github from 7.3.0 to 8.0.0
2 parents 5e29095 + 4274dac commit 18d07a1

30 files changed

+99
-133
lines changed

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ on:
2424

2525
jobs:
2626
coding-standards:
27-
uses: "doctrine/.github/.github/workflows/coding-standards.yml@7.3.0"
27+
uses: "doctrine/.github/.github/workflows/coding-standards.yml@8.0.0"

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ on:
1717
jobs:
1818
documentation:
1919
name: "Documentation"
20-
uses: "doctrine/.github/.github/workflows/documentation.yml@7.3.0"
20+
uses: "doctrine/.github/.github/workflows/documentation.yml@8.0.0"

.github/workflows/release-on-milestone-closed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
release:
10-
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@7.3.0"
10+
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@8.0.0"
1111
secrets:
1212
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
1313
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,13 @@
4141
},
4242
"require-dev": {
4343
"doctrine/annotations": "^1.13 || ^2",
44-
"doctrine/coding-standard": "^9.0.2 || ^13.0",
44+
"doctrine/coding-standard": "^9.0.2 || ^14.0",
4545
"phpbench/phpbench": "^0.16.10 || ^1.0",
4646
"phpstan/extension-installer": "~1.1.0 || ^1.4",
4747
"phpstan/phpstan": "~1.4.10 || 2.1.22",
4848
"phpstan/phpstan-deprecation-rules": "^1 || ^2",
4949
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.6",
5050
"psr/log": "^1 || ^2 || ^3",
51-
"squizlabs/php_codesniffer": "3.13.2",
5251
"symfony/cache": "^4.4 || ^5.4 || ^6.4 || ^7.0",
5352
"symfony/var-exporter": "^4.4 || ^5.4 || ^6.2 || ^7.0",
5453
"symfony/yaml": "^3.4 || ^4.0 || ^5.0 || ^6.0 || ^7.0"

phpcs.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@
234234
<!-- extending a class from another package -->
235235
<exclude-pattern>tests/Tests/Mocks/DatabasePlatformMock.php</exclude-pattern>
236236
<exclude-pattern>tests/Tests/Mocks/SchemaManagerMock.php</exclude-pattern>
237+
<exclude-pattern>tests/Tests/ORM/AbstractQueryTest.php</exclude-pattern>
237238
<exclude-pattern>tests/Tests/ORM/Functional/Ticket/DDC3634Test.php</exclude-pattern>
238239
</rule>
239240

phpstan-baseline.neon

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -534,12 +534,6 @@ parameters:
534534
count: 5
535535
path: src/Cache/Persister/Entity/AbstractEntityPersister.php
536536

537-
-
538-
message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Entity\\AbstractEntityPersister\:\:loadAll\(\) has no return type specified\.$#'
539-
identifier: missingType.return
540-
count: 1
541-
path: src/Cache/Persister/Entity/AbstractEntityPersister.php
542-
543537
-
544538
message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Entity\\AbstractEntityPersister\:\:loadManyToManyCollection\(\) has parameter \$assoc with no value type specified in iterable type array\.$#'
545539
identifier: missingType.iterableValue
@@ -852,6 +846,12 @@ parameters:
852846
count: 1
853847
path: src/EntityManager.php
854848

849+
-
850+
message: '#^Method Doctrine\\ORM\\EntityRepository\:\:findBy\(\) should return list\<T of object\> but returns array\<mixed\>\.$#'
851+
identifier: return.type
852+
count: 1
853+
path: src/EntityRepository.php
854+
855855
-
856856
message: '#^Method Doctrine\\ORM\\EntityRepository\:\:findOneBy\(\) should return \(T of object\)\|null but returns object\|null\.$#'
857857
identifier: return.type
@@ -2844,12 +2844,6 @@ parameters:
28442844
count: 5
28452845
path: src/Persisters/Entity/BasicEntityPersister.php
28462846

2847-
-
2848-
message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:loadAll\(\) has no return type specified\.$#'
2849-
identifier: missingType.return
2850-
count: 1
2851-
path: src/Persisters/Entity/BasicEntityPersister.php
2852-
28532847
-
28542848
message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:loadCollectionFromStatement\(\) has parameter \$coll with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#'
28552849
identifier: missingType.generics
@@ -3012,12 +3006,6 @@ parameters:
30123006
count: 5
30133007
path: src/Persisters/Entity/EntityPersister.php
30143008

3015-
-
3016-
message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\EntityPersister\:\:loadAll\(\) has no return type specified\.$#'
3017-
identifier: missingType.return
3018-
count: 1
3019-
path: src/Persisters/Entity/EntityPersister.php
3020-
30213009
-
30223010
message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\EntityPersister\:\:loadManyToManyCollection\(\) has parameter \$assoc with no value type specified in iterable type array\.$#'
30233011
identifier: missingType.iterableValue

src/Persisters/Entity/EntityPersister.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ public function loadCriteria(Criteria $criteria);
258258
* @param int|null $offset
259259
* @phpstan-param array<string, string>|null $orderBy
260260
* @phpstan-param array<string, mixed> $criteria
261+
*
262+
* @return mixed[]
261263
*/
262264
public function loadAll(array $criteria = [], ?array $orderBy = null, $limit = null, $offset = null);
263265

tests/Tests/Models/Enums/Card.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
class Card
1616
{
1717
/**
18-
* @Id @GeneratedValue @Column(type="integer")
18+
* @Id
19+
* @GeneratedValue
20+
* @Column(type="integer")
1921
* @var int
2022
*/
2123
#[Id]

tests/Tests/Models/Enums/CardWithNullable.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
class CardWithNullable
1616
{
1717
/**
18-
* @Id @GeneratedValue @Column(type="integer")
18+
* @Id
19+
* @GeneratedValue
20+
* @Column(type="integer")
1921
* @var int
2022
*/
2123
#[Id]

tests/Tests/Models/Enums/Scale.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
class Scale
1616
{
1717
/**
18-
* @Id @GeneratedValue @Column(type="integer")
18+
* @Id
19+
* @GeneratedValue
20+
* @Column(type="integer")
1921
* @var int
2022
*/
2123
#[Id]

0 commit comments

Comments
 (0)