Skip to content

Commit be53645

Browse files
Add return types, round 1
1 parent d92dc93 commit be53645

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/Loader/GlobFileLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testLoadAddsTheGlobResourceToTheContainer()
3838

3939
class GlobFileLoaderWithoutImport extends GlobFileLoader
4040
{
41-
public function import(mixed $resource, string $type = null, bool $ignoreErrors = false, string $sourceResource = null, $exclude = null)
41+
public function import(mixed $resource, string $type = null, bool $ignoreErrors = false, string $sourceResource = null, $exclude = null): mixed
4242
{
4343
return new RouteCollection();
4444
}

Tests/Loader/ObjectLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function supports(mixed $resource, string $type = null): bool
103103
return 'service';
104104
}
105105

106-
protected function getObject(string $id)
106+
protected function getObject(string $id): object
107107
{
108108
return $this->loaderMap[$id] ?? null;
109109
}

0 commit comments

Comments
 (0)