Bugfix, allow null user in project voter canEdit argument type

This commit is contained in:
2025-06-02 14:03:20 +02:00
parent 45f66d758c
commit 73aea8a3ff
+1 -1
View File
@@ -37,7 +37,7 @@ final class ProjectVoter extends Voter
return false;
}
private function canEdit(ProjectApiResource $project, User $user): bool
private function canEdit(ProjectApiResource $project, ?User $user): bool
{
if (!$user instanceof User) {
return false;