From a9be442dd1ff48f9db44a7743f668bbf3dc0ec3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 15 Oct 2023 16:47:39 +0200 Subject: [PATCH] Fixed PartVoter when a class string is passed --- src/Security/Voter/PartVoter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Security/Voter/PartVoter.php b/src/Security/Voter/PartVoter.php index 88b67f8f..ec849bf4 100644 --- a/src/Security/Voter/PartVoter.php +++ b/src/Security/Voter/PartVoter.php @@ -64,6 +64,6 @@ final class PartVoter extends Voter public function supportsType(string $subjectType): bool { - return is_a($subjectType, Part::class, true); + return $subjectType === 'string' || is_a($subjectType, Part::class, true); } }