Skip to content

Commit 35cb504

Browse files
Merge branch '5.4' into 6.2
* 5.4: Migrate to `static` data providers using `rector/rector`
2 parents c232a91 + d0ec59b commit 35cb504

File tree

13 files changed

+24
-24
lines changed

13 files changed

+24
-24
lines changed

Tests/ArgumentResolver/EntityValueResolverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function testUsedProperIdentifier()
187187
$this->assertSame([null], $resolver->resolve($request, $argument));
188188
}
189189

190-
public function idsProvider(): iterable
190+
public static function idsProvider(): iterable
191191
{
192192
yield [1];
193193
yield [0];

Tests/DataCollector/DoctrineDataCollectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function testSerialization($param, array $types, $expected)
134134
$this->assertTrue($collectedQueries['default'][0]['runnable']);
135135
}
136136

137-
public function paramProvider(): array
137+
public static function paramProvider(): array
138138
{
139139
return [
140140
['some value', [], 'some value'],

Tests/DataCollector/DoctrineDataCollectorWithDebugStackTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function testSerialization($param, array $types, $expected, $explainable,
107107
$this->assertSame($runnable, $collectedQueries['default'][0]['runnable']);
108108
}
109109

110-
public function paramProvider(): array
110+
public static function paramProvider(): array
111111
{
112112
return [
113113
['some value', [], 'some value', true],

Tests/DependencyInjection/DoctrineExtensionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function testFixManagersAutoMappingsWithTwoAutomappings()
8383
$method->invoke($this->extension, $emConfigs, $bundles);
8484
}
8585

86-
public function getAutomappingData()
86+
public static function getAutomappingData()
8787
{
8888
return [
8989
[
@@ -194,7 +194,7 @@ public function testMappingTypeDetection()
194194
$this->assertSame($mappingType, 'attribute');
195195
}
196196

197-
public function providerBasicDrivers()
197+
public static function providerBasicDrivers()
198198
{
199199
return [
200200
['doctrine.orm.cache.apc.class', ['type' => 'apc']],
@@ -273,7 +273,7 @@ public function testUnrecognizedCacheDriverException()
273273
$this->invokeLoadCacheDriver($objectManager, $container, $cacheName);
274274
}
275275

276-
public function providerBundles()
276+
public static function providerBundles()
277277
{
278278
yield ['AnnotationsBundle', 'annotation', '/Entity'];
279279
yield ['AnnotationsOneLineBundle', 'annotation', '/Entity'];

Tests/Form/ChoiceList/ORMQueryBuilderLoaderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,15 +255,15 @@ public function testEmbeddedIdentifierName()
255255
$loader->getEntitiesByIds('id.value', [1, '', 2, 3, 'foo']);
256256
}
257257

258-
public function provideGuidEntityClasses()
258+
public static function provideGuidEntityClasses()
259259
{
260260
return [
261261
['Symfony\Bridge\Doctrine\Tests\Fixtures\GuidIdEntity'],
262262
['Symfony\Bridge\Doctrine\Tests\Fixtures\UuidIdEntity'],
263263
];
264264
}
265265

266-
public function provideUidEntityClasses()
266+
public static function provideUidEntityClasses()
267267
{
268268
return [
269269
['Symfony\Bridge\Doctrine\Tests\Fixtures\UuidIdEntity'],

Tests/Form/Type/EntityTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function testChoiceTranslationDomainIsDisabledByDefault($expanded)
158158
}
159159
}
160160

161-
public function choiceTranslationDomainProvider()
161+
public static function choiceTranslationDomainProvider()
162162
{
163163
return [
164164
[false],

Tests/Logger/DbalLoggerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testLog($sql, $params, $logParams)
4343
$dbalLogger->startQuery($sql, $params);
4444
}
4545

46-
public function getLogFixtures()
46+
public static function getLogFixtures()
4747
{
4848
return [
4949
['SQL', null, []],

Tests/Middleware/Debug/MiddlewareTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private function getResourceFromString(string $str)
7878
return $res;
7979
}
8080

81-
public function provideExecuteMethod(): array
81+
public static function provideExecuteMethod(): array
8282
{
8383
return [
8484
'executeStatement' => [
@@ -168,7 +168,7 @@ public function testWithParamBound(callable $executeMethod)
168168
$this->assertGreaterThan(0, $debug[1]['executionMS']);
169169
}
170170

171-
public function provideEndTransactionMethod(): array
171+
public static function provideEndTransactionMethod(): array
172172
{
173173
return [
174174
'commit' => [static fn (Connection $conn) => $conn->commit(), '"COMMIT"'],
@@ -208,7 +208,7 @@ public function testTransaction(callable $endTransactionMethod, string $expected
208208
$this->assertGreaterThan(0, $debug[6]['executionMS']);
209209
}
210210

211-
public function provideExecuteAndEndTransactionMethods(): array
211+
public static function provideExecuteAndEndTransactionMethods(): array
212212
{
213213
return [
214214
'commit and exec' => [

Tests/PropertyInfo/DoctrineExtractorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function testExtractEnum()
135135
$this->assertNull($this->createExtractor()->getTypes(DoctrineEnum::class, 'enumCustom', []));
136136
}
137137

138-
public function typesProvider()
138+
public static function typesProvider()
139139
{
140140
$provider = [
141141
['id', [new Type(Type::BUILTIN_TYPE_INT)]],

Tests/Types/UlidTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function testGetGuidTypeDeclarationSQL(AbstractPlatform $platform, string
140140
$this->assertEquals($expectedDeclaration, $this->type->getSqlDeclaration(['length' => 36], $platform));
141141
}
142142

143-
public function provideSqlDeclarations(): array
143+
public static function provideSqlDeclarations(): array
144144
{
145145
return [
146146
[new PostgreSQLPlatform(), 'UUID'],

0 commit comments

Comments
 (0)