Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 36f9251

Browse files
Fix merge
1 parent 11c60aa commit 36f9251

File tree

44 files changed

+86
-86
lines changed

Some content is hidden

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

44 files changed

+86
-86
lines changed

src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ public function testPseudoTypes($property, array $type)
418418
$this->assertEquals($type, $this->extractor->getTypes('Symfony\Component\PropertyInfo\Tests\Fixtures\PseudoTypesDummy', $property));
419419
}
420420

421-
public function pseudoTypesProvider(): array
421+
public static function pseudoTypesProvider(): array
422422
{
423423
return [
424424
['classString', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]],
@@ -441,7 +441,7 @@ public function testExtractPromotedProperty(string $property, ?array $types)
441441
$this->assertEquals($types, $this->extractor->getTypes(Php80Dummy::class, $property));
442442
}
443443

444-
public function promotedPropertyProvider(): array
444+
public static function promotedPropertyProvider(): array
445445
{
446446
return [
447447
['promoted', null],

src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ public function testPseudoTypes($property, array $type)
395395
$this->assertEquals($type, $this->extractor->getTypes('Symfony\Component\PropertyInfo\Tests\Fixtures\PhpStanPseudoTypesDummy', $property));
396396
}
397397

398-
public function pseudoTypesProvider(): array
398+
public static function pseudoTypesProvider(): array
399399
{
400400
return [
401401
['classString', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]],
@@ -462,7 +462,7 @@ public function testExtractPhp80Type(string $class, $property, array $type = nul
462462
$this->assertEquals($type, $this->extractor->getTypes($class, $property, []));
463463
}
464464

465-
public function php80TypesProvider()
465+
public static function php80TypesProvider()
466466
{
467467
return [
468468
[Php80Dummy::class, 'promotedAndMutated', [new Type(Type::BUILTIN_TYPE_STRING)]],

src/Symfony/Component/RateLimiter/Tests/Policy/FixedWindowLimiterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public function testPeekConsume()
122122
}
123123
}
124124

125-
public function provideConsumeOutsideInterval(): \Generator
125+
public static function provideConsumeOutsideInterval(): \Generator
126126
{
127127
yield ['PT15S'];
128128

src/Symfony/Component/Routing/Tests/Annotation/RouteTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function testLoadFromDoctrineAnnotation(string $methodName, string $gette
5757
$this->assertEquals($route->$getter(), $expectedReturn);
5858
}
5959

60-
public function getValidParameters(): iterable
60+
public static function getValidParameters(): iterable
6161
{
6262
return [
6363
['simplePath', 'getPath', '/Blog'],

src/Symfony/Component/Routing/Tests/Loader/PhpFileLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ protected function configureRoute(Route $route, \ReflectionClass $class, \Reflec
324324
$this->assertSame(MyController::class.'::__invoke', $route->getDefault('_controller'));
325325
}
326326

327-
public function providePsr4ConfigFiles(): array
327+
public static function providePsr4ConfigFiles(): array
328328
{
329329
return [
330330
['psr4-attributes.php'],

src/Symfony/Component/Routing/Tests/Loader/Psr4DirectoryLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function testPsr4NamespaceTrim(string $namespace)
8181
$this->assertSame(MyController::class.'::__invoke', $route->getDefault('_controller'));
8282
}
8383

84-
public function provideNamespacesThatNeedTrimming(): array
84+
public static function provideNamespacesThatNeedTrimming(): array
8585
{
8686
return [
8787
['\\Symfony\Component\Routing\Tests\Fixtures\Psr4Controllers'],

src/Symfony/Component/Routing/Tests/Loader/XmlFileLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ protected function configureRoute(Route $route, \ReflectionClass $class, \Reflec
619619
$this->assertSame(MyController::class.'::__invoke', $route->getDefault('_controller'));
620620
}
621621

622-
public function providePsr4ConfigFiles(): array
622+
public static function providePsr4ConfigFiles(): array
623623
{
624624
return [
625625
['psr4-attributes.xml'],

src/Symfony/Component/Routing/Tests/Loader/YamlFileLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ protected function configureRoute(Route $route, \ReflectionClass $class, \Reflec
485485
$this->assertSame(MyController::class.'::__invoke', $route->getDefault('_controller'));
486486
}
487487

488-
public function providePsr4ConfigFiles(): array
488+
public static function providePsr4ConfigFiles(): array
489489
{
490490
return [
491491
['psr4-attributes.yaml'],

src/Symfony/Component/Routing/Tests/Requirement/EnumRequirementTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function testToString(string $expected, string|array $cases = [])
5454
$this->assertSame($expected, (string) new EnumRequirement($cases));
5555
}
5656

57-
public function provideToString()
57+
public static function provideToString()
5858
{
5959
return [
6060
['hearts|diamonds|clubs|spades', TestStringBackedEnum::class],

src/Symfony/Component/Security/Core/Tests/Authorization/ExpressionLanguageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testIsAuthenticated($token, $expression, $result)
4444
$this->assertEquals($result, $expressionLanguage->evaluate($expression, $context));
4545
}
4646

47-
public function provider()
47+
public static function provider()
4848
{
4949
$roles = ['ROLE_USER', 'ROLE_ADMIN'];
5050
$user = new InMemoryUser('username', 'password', $roles);

0 commit comments

Comments
 (0)