N°8834 - Add compatibility with PHP 8.4 (#819)

* N°8834 - Add compatibility with PHP 8.4

* Rollback of scssphp/scssphp version upgrade due to compilation error
This commit is contained in:
Lenaick
2026-02-26 10:36:32 +01:00
committed by GitHub
parent d4821b7edc
commit fc967c06ce
961 changed files with 12298 additions and 7130 deletions

View File

@@ -20,8 +20,6 @@ namespace Symfony\Component\Routing\Attribute;
*
* @author Fabien Potencier <fabien@symfony.com>
* @author Alexander M. Turek <me@derrabus.de>
*
* @final since Symfony 6.4
*/
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
class Route
@@ -37,7 +35,7 @@ class Route
* @param string[]|string $schemes
*/
public function __construct(
string|array $path = null,
string|array|null $path = null,
private ?string $name = null,
private array $requirements = [],
private array $options = [],
@@ -47,11 +45,11 @@ class Route
array|string $schemes = [],
private ?string $condition = null,
private ?int $priority = null,
string $locale = null,
string $format = null,
bool $utf8 = null,
bool $stateless = null,
private ?string $env = null
?string $locale = null,
?string $format = null,
?bool $utf8 = null,
?bool $stateless = null,
private ?string $env = null,
) {
if (\is_array($path)) {
$this->localizedPaths = $path;