forked from wallabag/wallabag
Migrate to constructor promoted properties
This commit is contained in:
@ -12,11 +12,9 @@ class IgnoreOriginInstanceRuleVoter extends Voter
|
||||
public const EDIT = 'EDIT';
|
||||
public const DELETE = 'DELETE';
|
||||
|
||||
private Security $security;
|
||||
|
||||
public function __construct(Security $security)
|
||||
{
|
||||
$this->security = $security;
|
||||
public function __construct(
|
||||
private Security $security,
|
||||
) {
|
||||
}
|
||||
|
||||
protected function supports(string $attribute, $subject): bool
|
||||
|
||||
Reference in New Issue
Block a user