Skip to content

Commit

Permalink
Bump minimum version of PHP to 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas authored and fabpot committed Feb 25, 2022
1 parent cbdc29a commit 28c2270
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CsrfTokenManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct(TokenGeneratorInterface $generator = null, TokenStor
} elseif ($namespace instanceof \Closure || \is_string($namespace)) {
$this->namespace = $namespace;
} elseif (\is_callable($namespace)) {
$this->namespace = \Closure::fromCallable($namespace);
$this->namespace = $namespace(...);
} else {
throw new InvalidArgumentException(sprintf('$namespace must be a string, a callable returning a string, null or an instance of "RequestStack". "%s" given.', get_debug_type($namespace)));
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
],
"require": {
"php": ">=8.0.2",
"php": ">=8.1",
"symfony/security-core": "^5.4|^6.0"
},
"require-dev": {
Expand Down

0 comments on commit 28c2270

Please sign in to comment.