Skip to content

Commit 115b7f2

Browse files
minor #41575 [Config] Add parameter types (derrabus)
This PR was merged into the 6.0 branch. Discussion ---------- [Config] Add parameter types | Q | A | ------------- | --- | Branch? | 6.0 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Part of #41424 | License | MIT | Doc PR | N/A This PR adds parameter types to all methods of the Config component. Commits ------- e7e5256438 [Config] Add parameter types
2 parents 79102c0 + dec4435 commit 115b7f2

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($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)
4242
{
4343
return new RouteCollection();
4444
}

Tests/Loader/ObjectLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class TestObjectLoader extends ObjectLoader
9898
{
9999
public $loaderMap = [];
100100

101-
public function supports($resource, string $type = null): bool
101+
public function supports(mixed $resource, string $type = null): bool
102102
{
103103
return 'service';
104104
}

0 commit comments

Comments
 (0)