|
|
@@ -72,7 +72,7 @@ abstract class AbstractEntityVoter extends Voter
|
|
|
throw new \RuntimeException('Setup the self::$entityClass property, or override the supports() method');
|
|
|
}
|
|
|
|
|
|
- return $subject::class === static::$entityClass && in_array($attribute, static::$allowedOperations);
|
|
|
+ return $subject !== null && $subject::class === static::$entityClass && in_array($attribute, static::$allowedOperations);
|
|
|
}
|
|
|
|
|
|
/**
|