Skip to content

Commit 0609d48

Browse files
committed
Executed rector
1 parent b48c5d8 commit 0609d48

File tree

611 files changed

+1322
-1322
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

611 files changed

+1322
-1322
lines changed

src/Symfony/Bridge/Doctrine/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'],

src/Symfony/Bridge/Doctrine/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],

src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php

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

87-
public function getAutomappingData()
87+
public static function getAutomappingData()
8888
{
8989
return [
9090
[
@@ -197,7 +197,7 @@ public function testMappingTypeDetection()
197197
$this->assertSame($mappingType, \PHP_VERSION_ID < 80000 ? 'annotation' : 'attribute');
198198
}
199199

200-
public function providerBasicDrivers()
200+
public static function providerBasicDrivers()
201201
{
202202
return [
203203
['doctrine.orm.cache.apc.class', ['type' => 'apc']],
@@ -276,7 +276,7 @@ public function testUnrecognizedCacheDriverException()
276276
$this->invokeLoadCacheDriver($objectManager, $container, $cacheName);
277277
}
278278

279-
public function providerBundles()
279+
public static function providerBundles()
280280
{
281281
yield ['AnnotationsBundle', 'annotation', '/Entity'];
282282
yield ['FullEmbeddableAnnotationsBundle', 'annotation', '/Entity'];

src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/ORMQueryBuilderLoaderTest.php

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

265-
public function provideGuidEntityClasses()
265+
public static function provideGuidEntityClasses()
266266
{
267267
return [
268268
['Symfony\Bridge\Doctrine\Tests\Fixtures\GuidIdEntity'],
269269
['Symfony\Bridge\Doctrine\Tests\Fixtures\UuidIdEntity'],
270270
];
271271
}
272272

273-
public function provideUidEntityClasses()
273+
public static function provideUidEntityClasses()
274274
{
275275
return [
276276
['Symfony\Bridge\Doctrine\Tests\Fixtures\UuidIdEntity'],

src/Symfony/Bridge/Doctrine/Tests/Form/DoctrineOrmTypeGuesserTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function testTypeGuesser(string $type, $expected)
3535
$this->assertEquals($expected, $this->getGuesser($classMetadata)->guessType('TestEntity', 'field'));
3636
}
3737

38-
public function requiredType()
38+
public static function requiredType()
3939
{
4040
yield [Types::DATE_IMMUTABLE, new TypeGuess('Symfony\Component\Form\Extension\Core\Type\DateType', ['input' => 'datetime_immutable'], Guess::HIGH_CONFIDENCE)];
4141
yield [Types::DATE_MUTABLE, new TypeGuess('Symfony\Component\Form\Extension\Core\Type\DateType', [], Guess::HIGH_CONFIDENCE)];
@@ -57,7 +57,7 @@ public function testRequiredGuesser($classMetadata, $expected)
5757
$this->assertEquals($expected, $this->getGuesser($classMetadata)->guessRequired('TestEntity', 'field'));
5858
}
5959

60-
public function requiredProvider()
60+
public static function requiredProvider()
6161
{
6262
$return = [];
6363

src/Symfony/Bridge/Doctrine/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],

src/Symfony/Bridge/Doctrine/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, []],

src/Symfony/Bridge/Doctrine/Tests/Middleware/Debug/MiddlewareTest.php

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

82-
public function provideExecuteMethod(): array
82+
public static function provideExecuteMethod(): array
8383
{
8484
return [
8585
'executeStatement' => [
@@ -173,7 +173,7 @@ public function testWithParamBound(callable $executeMethod)
173173
$this->assertGreaterThan(0, $debug[1]['executionMS']);
174174
}
175175

176-
public function provideEndTransactionMethod(): array
176+
public static function provideEndTransactionMethod(): array
177177
{
178178
return [
179179
'commit' => [
@@ -223,7 +223,7 @@ public function testTransaction(callable $endTransactionMethod, string $expected
223223
$this->assertGreaterThan(0, $debug[6]['executionMS']);
224224
}
225225

226-
public function provideExecuteAndEndTransactionMethods(): array
226+
public static function provideExecuteAndEndTransactionMethods(): array
227227
{
228228
return [
229229
'commit and exec' => [

src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/DoctrineExtractorTest.php

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

146-
public function typesProvider()
146+
public static function typesProvider()
147147
{
148148
$provider = [
149149
['id', [new Type(Type::BUILTIN_TYPE_INT)]],

src/Symfony/Bridge/Doctrine/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)