@@ -253,7 +253,7 @@ you do. The resource name itself is not actually used in the example::
253
253
{
254
254
private $isLoaded = false;
255
255
256
- public function load($resource, $type = null)
256
+ public function load($resource, string $type = null)
257
257
{
258
258
if (true === $this->isLoaded) {
259
259
throw new \RuntimeException('Do not add the "extra" loader twice');
@@ -280,7 +280,7 @@ you do. The resource name itself is not actually used in the example::
280
280
return $routes;
281
281
}
282
282
283
- public function supports($resource, $type = null)
283
+ public function supports($resource, string $type = null)
284
284
{
285
285
return 'extra' === $type;
286
286
}
@@ -419,7 +419,7 @@ configuration file - you can call the
419
419
420
420
class AdvancedLoader extends Loader
421
421
{
422
- public function load($resource, $type = null)
422
+ public function load($resource, string $type = null)
423
423
{
424
424
$routes = new RouteCollection();
425
425
@@ -433,7 +433,7 @@ configuration file - you can call the
433
433
return $routes;
434
434
}
435
435
436
- public function supports($resource, $type = null)
436
+ public function supports($resource, string $type = null)
437
437
{
438
438
return 'advanced_extra' === $type;
439
439
}
0 commit comments