Fixed PartVoter when a class string is passed

This commit is contained in:
Jan Böhmer 2023-10-15 16:47:39 +02:00
parent ffbcf25246
commit a9be442dd1

View file

@ -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);
}
}