Skip to content

Commit ca5f274

Browse files
Merge branch '6.2' into 6.3
* 6.2: Fix merge Migrate to `static` data providers using `rector/rector`
2 parents e293858 + fa643fa commit ca5f274

15 files changed

+28
-28
lines changed

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'],

Tests/Generator/UrlGeneratorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function testAbsoluteUrlWithExtraParameters(string $expectedQueryString,
130130
$this->assertSame('http://localhost/app.php/testing'.$expectedQueryString, $url);
131131
}
132132

133-
public function valuesProvider(): array
133+
public static function valuesProvider(): array
134134
{
135135
$stdClass = new \stdClass();
136136
$stdClass->baz = 'bar';
@@ -894,7 +894,7 @@ public function testGetRelativePath($sourcePath, $targetPath, $expectedPath)
894894
$this->assertSame($expectedPath, UrlGenerator::getRelativePath($sourcePath, $targetPath));
895895
}
896896

897-
public function provideRelativePaths()
897+
public static function provideRelativePaths()
898898
{
899899
return [
900900
[
@@ -1036,7 +1036,7 @@ public function testLookRoundRequirementsInPath($expected, $path, $requirement)
10361036
$this->assertSame($expected, $this->getGenerator($routes)->generate('test', ['foo' => 'a/b', 'baz' => 'c/d/e']));
10371037
}
10381038

1039-
public function provideLookAroundRequirementsInPath()
1039+
public static function provideLookAroundRequirementsInPath()
10401040
{
10411041
yield ['/app.php/a/b/b%28ar/c/d/e', '/{foo}/b(ar/{baz}', '.+(?=/b\\(ar/)'];
10421042
yield ['/app.php/a/b/bar/c/d/e', '/{foo}/bar/{baz}', '.+(?!$)'];

Tests/Loader/AnnotationClassLoaderTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function testSupportsChecksResource($resource, $expectedSupports)
3030
$this->assertSame($expectedSupports, $this->loader->supports($resource), '->supports() returns true if the resource is loadable');
3131
}
3232

33-
public function provideTestSupportsChecksResource()
33+
public static function provideTestSupportsChecksResource()
3434
{
3535
return [
3636
['class', true],

Tests/Loader/ContainerLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function testSupports(bool $expected, string $type = null)
2525
$this->assertSame($expected, (new ContainerLoader(new Container()))->supports('foo', $type));
2626
}
2727

28-
public function supportsProvider()
28+
public static function supportsProvider()
2929
{
3030
return [
3131
[true, 'service'],

Tests/Loader/ObjectLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function testExceptionWithoutSyntax(string $resourceString)
5050
$loader->load($resourceString);
5151
}
5252

53-
public function getBadResourceStrings()
53+
public static function getBadResourceStrings()
5454
{
5555
return [
5656
['Foo:Bar:baz'],

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'],

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'],

Tests/Loader/XmlFileLoaderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public function testLoadThrowsExceptionWithInvalidFileEvenWithoutSchemaValidatio
234234
$loader->load($filePath);
235235
}
236236

237-
public function getPathsToInvalidFiles()
237+
public static function getPathsToInvalidFiles()
238238
{
239239
return [
240240
['nonvalidnode.xml'],
@@ -482,7 +482,7 @@ public function testImportRouteWithController($file)
482482
$this->assertSame('FrameworkBundle:Template:template', $route->getDefault('_controller'));
483483
}
484484

485-
public function provideFilesImportingRoutesWithControllers()
485+
public static function provideFilesImportingRoutesWithControllers()
486486
{
487487
yield ['import_controller.xml'];
488488
yield ['import__controller.xml'];
@@ -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'],

Tests/Loader/YamlFileLoaderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function testLoadThrowsExceptionWithInvalidFile($filePath)
5656
$loader->load($filePath);
5757
}
5858

59-
public function getPathsToInvalidFiles()
59+
public static function getPathsToInvalidFiles()
6060
{
6161
return [
6262
['nonvalid.yml'],
@@ -175,7 +175,7 @@ public function testImportRouteWithController($file)
175175
$this->assertSame('FrameworkBundle:Template:template', $route->getDefault('_controller'));
176176
}
177177

178-
public function provideFilesImportingRoutesWithControllers()
178+
public static function provideFilesImportingRoutesWithControllers()
179179
{
180180
yield ['import_controller.yml'];
181181
yield ['import__controller.yml'];
@@ -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'],

Tests/Matcher/Dumper/CompiledUrlMatcherDumperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function testDump(RouteCollection $collection, $fixture)
6565
$this->assertStringEqualsFile($basePath.$fixture, $dumper->dump());
6666
}
6767

68-
public function getRouteCollections()
68+
public static function getRouteCollections()
6969
{
7070
/* test case 1 */
7171

0 commit comments

Comments
 (0)