Skip to content

Commit 013df03

Browse files
authored
Upgrade to doctrine/coding-standard 13 (#11881)
1 parent 3303cd3 commit 013df03

File tree

5 files changed

+5
-10
lines changed

5 files changed

+5
-10
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@
4141
},
4242
"require-dev": {
4343
"doctrine/annotations": "^1.13 || ^2",
44-
"doctrine/coding-standard": "^9.0.2 || ^12.0",
44+
"doctrine/coding-standard": "^9.0.2 || ^13.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.0.3",
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.7.2",
51+
"squizlabs/php_codesniffer": "3.12.0",
5252
"symfony/cache": "^4.4 || ^5.4 || ^6.4 || ^7.0",
5353
"symfony/var-exporter": "^4.4 || ^5.4 || ^6.2 || ^7.0",
5454
"symfony/yaml": "^3.4 || ^4.0 || ^5.0 || ^6.0 || ^7.0"

src/Mapping/ClassMetadataInfo.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,6 @@ public function enableAssociationCache($fieldName, array $cache)
12781278

12791279
/**
12801280
* @param string $fieldName
1281-
* @param array $cache
12821281
* @phpstan-param array{usage?: int|null, region?: string|null} $cache
12831282
*
12841283
* @return int[]|string[]

tests/Tests/Mocks/ConnectionMock.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,11 @@ public function setDatabasePlatform(AbstractPlatform $platform): void
118118
$this->_platformMock = $platform;
119119
}
120120

121-
/** @return array */
122121
public function getExecuteStatements(): array
123122
{
124123
return $this->_executeStatements;
125124
}
126125

127-
/** @return array */
128126
public function getDeletes(): array
129127
{
130128
return $this->_deletes;

tests/Tests/ORM/Mapping/Reflection/ReflectionPropertiesGetterTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function testPropertiesAreAccessible(): void
8484

8585
public function testPropertyGetterIsIdempotent(): void
8686
{
87-
$getter = (new ReflectionPropertiesGetter(new RuntimeReflectionService()));
87+
$getter = new ReflectionPropertiesGetter(new RuntimeReflectionService());
8888

8989
self::assertSame(
9090
$getter->getProperties(ClassWithMixedProperties::class),
@@ -110,7 +110,7 @@ public function testPropertyGetterWillSkipPropertiesNotRetrievedByTheRuntimeRefl
110110
->expects(self::atLeastOnce())
111111
->method('getAccessibleProperty');
112112

113-
$getter = (new ReflectionPropertiesGetter($reflectionService));
113+
$getter = new ReflectionPropertiesGetter($reflectionService);
114114

115115
self::assertEmpty($getter->getProperties(ClassWithMixedProperties::class));
116116
}
@@ -127,7 +127,7 @@ public function testPropertyGetterWillSkipClassesNotRetrievedByTheRuntimeReflect
127127

128128
$reflectionService->expects(self::never())->method('getAccessibleProperty');
129129

130-
$getter = (new ReflectionPropertiesGetter($reflectionService));
130+
$getter = new ReflectionPropertiesGetter($reflectionService);
131131

132132
self::assertEmpty($getter->getProperties(ClassWithMixedProperties::class));
133133
}

tests/Tests/OrmFunctionalTestCase.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,6 @@ protected function tearDown(): void
679679
}
680680

681681
/**
682-
* @param array $classNames
683-
*
684682
* @throws RuntimeException
685683
*/
686684
protected function setUpEntitySchema(array $classNames): void

0 commit comments

Comments
 (0)