forked from wallabag/wallabag
Migrate to readonly properties
This commit is contained in:
@ -15,7 +15,7 @@ class AdminVoter extends Voter
|
||||
public const CREATE_IGNORE_ORIGIN_INSTANCE_RULES = 'CREATE_IGNORE_ORIGIN_INSTANCE_RULES';
|
||||
|
||||
public function __construct(
|
||||
private Security $security,
|
||||
private readonly Security $security,
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ class IgnoreOriginInstanceRuleVoter extends Voter
|
||||
public const DELETE = 'DELETE';
|
||||
|
||||
public function __construct(
|
||||
private Security $security,
|
||||
private readonly Security $security,
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ class MainVoter extends Voter
|
||||
public const EDIT_CONFIG = 'EDIT_CONFIG';
|
||||
|
||||
public function __construct(
|
||||
private Security $security,
|
||||
private readonly Security $security,
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ class TagVoter extends Voter
|
||||
public const DELETE = 'DELETE';
|
||||
|
||||
public function __construct(
|
||||
private Security $security,
|
||||
private readonly Security $security,
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ class UserVoter extends Voter
|
||||
public const DELETE = 'DELETE';
|
||||
|
||||
public function __construct(
|
||||
private Security $security,
|
||||
private readonly Security $security,
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user