Skip to content

Commit ade8866

Browse files
Add native return types to fix compat with v7
1 parent 7282648 commit ade8866

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGELOG
55
---
66

77
* Add FQCN and FQCN::method aliases for routes loaded from attributes/annotations when applicable
8+
* Add native return type to `AnnotationClassLoader::setResolver()`
89

910
6.2
1011
---

Loader/AnnotationClassLoader.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,7 @@ public function supports(mixed $resource, string $type = null): bool
253253
return \is_string($resource) && preg_match('/^(?:\\\\?[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)+$/', $resource) && (!$type || \in_array($type, ['annotation', 'attribute'], true));
254254
}
255255

256-
/**
257-
* @return void
258-
*/
259-
public function setResolver(LoaderResolverInterface $resolver)
256+
public function setResolver(LoaderResolverInterface $resolver): void
260257
{
261258
}
262259

0 commit comments

Comments
 (0)