@@ -19,10 +19,10 @@ public function testCreateCorrect(string $path, RouteRulesProvider $routeRulesPr
19
19
$ this ->assertTrue (is_a ($ actual , $ expected ));
20
20
}
21
21
22
- public function correctDataProvider ()
22
+ public static function correctDataProvider (): array
23
23
{
24
- $ routeRulesProviderWithoutApiVersion = $ this -> getRouteRulesProviderWithoutApiVersion ();
25
- $ routeRulesProviderWithApiVersion = $ this -> getRouteRulesProviderWithApiVersion ();
24
+ $ routeRulesProviderWithoutApiVersion = self :: getRouteRulesProviderWithoutApiVersion ();
25
+ $ routeRulesProviderWithApiVersion = self :: getRouteRulesProviderWithApiVersion ();
26
26
$ uuid = Uuid::uuid4 ()->toString ();
27
27
28
28
return [
@@ -49,10 +49,10 @@ public function testCreateIncorrect(string $path, RouteRulesProvider $routeRules
49
49
$ factory ->create ($ path );
50
50
}
51
51
52
- public function incorrectDataProvider ()
52
+ public static function incorrectDataProvider (): array
53
53
{
54
- $ routeRulesProviderWithoutApiVersion = $ this -> getRouteRulesProviderWithoutApiVersion ();
55
- $ routeRulesProviderWithApiVersion = $ this -> getRouteRulesProviderWithApiVersion ();
54
+ $ routeRulesProviderWithoutApiVersion = self :: getRouteRulesProviderWithoutApiVersion ();
55
+ $ routeRulesProviderWithApiVersion = self :: getRouteRulesProviderWithApiVersion ();
56
56
$ uuid = Uuid::uuid4 ()->toString ();
57
57
58
58
return [
@@ -91,7 +91,7 @@ private function getMappingProvider(): MappingConfigProvider
91
91
);
92
92
}
93
93
94
- private function getRouteRulesProviderWithoutApiVersion (): RouteRulesProvider
94
+ private static function getRouteRulesProviderWithoutApiVersion (): RouteRulesProvider
95
95
{
96
96
$ resourceRegex = '([a-z][A-Za-z\d]+) ' ;
97
97
$ hexRegex = '[\da-f] ' ;
@@ -108,7 +108,7 @@ private function getRouteRulesProviderWithoutApiVersion(): RouteRulesProvider
108
108
);
109
109
}
110
110
111
- private function getRouteRulesProviderWithApiVersion (): RouteRulesProvider
111
+ private static function getRouteRulesProviderWithApiVersion (): RouteRulesProvider
112
112
{
113
113
$ versionRegex = '(v\d+) ' ;
114
114
$ resourceRegex = '([a-z][A-Za-z\d]+) ' ;
0 commit comments