Skip to content

Commit 6980629

Browse files
some backports from master
1 parent c8ca17a commit 6980629

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Loader/Configurator/RoutingConfigurator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(RouteCollection $collection, PhpFileLoader $loader,
3333
$this->file = $file;
3434
}
3535

36-
final public function import($resource, $type = null, $ignoreErrors = false): ImportConfigurator
36+
final public function import($resource, string $type = null, bool $ignoreErrors = false): ImportConfigurator
3737
{
3838
$this->loader->setCurrentDir(\dirname($this->path));
3939
$imported = $this->loader->import($resource, $type, $ignoreErrors, $this->file);
@@ -49,7 +49,7 @@ final public function import($resource, $type = null, $ignoreErrors = false): Im
4949
return new ImportConfigurator($this->collection, $mergedCollection);
5050
}
5151

52-
final public function collection($name = ''): CollectionConfigurator
52+
final public function collection(string $name = ''): CollectionConfigurator
5353
{
5454
return new CollectionConfigurator($this->collection, $name);
5555
}

0 commit comments

Comments
 (0)