Skip to content

Commit f7c62d7

Browse files
nicolas-grekasfabpot
authored andcommitted
Bump minimum version of PHP to 8.1
1 parent 4ac0fd3 commit f7c62d7

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

Authentication/Token/Storage/TokenStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function setToken(TokenInterface $token = null)
5656

5757
public function setInitializer(?callable $initializer): void
5858
{
59-
$this->initializer = null === $initializer || $initializer instanceof \Closure ? $initializer : \Closure::fromCallable($initializer);
59+
$this->initializer = null === $initializer ? null : $initializer(...);
6060
}
6161

6262
public function reset()

Authorization/TraceableAccessDecisionManager.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@ public function __construct(AccessDecisionManagerInterface $manager)
3939
if ($this->manager instanceof AccessDecisionManager) {
4040
// The strategy and voters are stored in a private properties of the decorated service
4141
$reflection = new \ReflectionProperty(AccessDecisionManager::class, 'strategy');
42-
$reflection->setAccessible(true);
4342
$this->strategy = $reflection->getValue($manager);
4443
$reflection = new \ReflectionProperty(AccessDecisionManager::class, 'voters');
45-
$reflection->setAccessible(true);
4644
$this->voters = $reflection->getValue($manager);
4745
}
4846
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">=8.0.2",
19+
"php": ">=8.1",
2020
"symfony/event-dispatcher-contracts": "^1.1|^2|^3",
2121
"symfony/service-contracts": "^1.1.6|^2|^3",
2222
"symfony/password-hasher": "^5.4|^6.0"

0 commit comments

Comments
 (0)