8000 Make use of the new getAttributesOfType method · symfony/symfony@b1fb345 · GitHub
[go: up one dir, main page]

Skip to content

Commit b1fb345

Browse files
Seldaekfabpot
authored andcommitted
Make use of the new getAttributesOfType method
1 parent db99c07 commit b1fb345

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Security/Http/Controller/UserValueResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function supports(Request $request, ArgumentMetadata $argument): bool
3737
{
3838
// with the attribute, the type can be any UserInterface implementation
3939
// otherwise, the type must be UserInterface
40-
if (UserInterface::class !== $argument->getType() && !$argument->getAttributes(CurrentUser::class, ArgumentMetadata::IS_INSTANCEOF)) {
40+
if (UserInterface::class !== $argument->getType() && !$argument->getAttributesOfType(CurrentUser::class, ArgumentMetadata::IS_INSTANCEOF)) {
4141
return false;
4242
}
4343

src/Symfony/Component/Security/Http/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"php": ">=8.1",
2020
"symfony/security-core": "^5.4|^6.0",
2121
"symfony/http-foundation": "^5.4|^6.0",
22-
"symfony/http-kernel": "^5.4|^6.0",
22+
"symfony/http-kernel": "^6.1",
2323
"symfony/polyfill-mbstring": "~1.0",
2424
"symfony/property-access": "^5.4|^6.0"
2525
},

0 commit comments

Comments
 (0)
0