File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed
Authentication/Token/Storage Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function setToken(TokenInterface $token = null)
56
56
57
57
public function setInitializer (?callable $ initializer ): void
58
58
{
59
- $ this ->initializer = null === $ initializer || $ initializer instanceof \Closure ? $ initializer : \Closure:: fromCallable ( $ initializer );
59
+ $ this ->initializer = null === $ initializer ? null : $ initializer(... );
60
60
}
61
61
62
62
public function reset ()
Original file line number Diff line number Diff line change @@ -39,10 +39,8 @@ public function __construct(AccessDecisionManagerInterface $manager)
39
39
if ($ this ->manager instanceof AccessDecisionManager) {
40
40
// The strategy and voters are stored in a private properties of the decorated service
41
41
$ reflection = new \ReflectionProperty (AccessDecisionManager::class, 'strategy ' );
42
- $ reflection ->setAccessible (true );
43
42
$ this ->strategy = $ reflection ->getValue ($ manager );
44
43
$ reflection = new \ReflectionProperty (AccessDecisionManager::class, 'voters ' );
45
- $ reflection ->setAccessible (true );
46
44
$ this ->voters = $ reflection ->getValue ($ manager );
47
45
}
48
46
}
Original file line number Diff line number Diff line change 16
16
}
17
17
],
18
18
"require" : {
19
- "php" : " >=8.0.2 " ,
19
+ "php" : " >=8.1 " ,
20
20
"symfony/event-dispatcher-contracts" : " ^1.1|^2|^3" ,
21
21
"symfony/service-contracts" : " ^1.1.6|^2|^3" ,
22
22
"symfony/password-hasher" : " ^5.4|^6.0"
You can’t perform that action at this time.
0 commit comments