mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-08 07:44:59 +00:00
apply rules rector up to php82
This commit is contained in:
@@ -38,7 +38,7 @@ class MenuTwig extends AbstractExtension implements ContainerAwareInterface
|
||||
'activeRouteKey' => null,
|
||||
];
|
||||
|
||||
public function __construct(private MenuComposer $menuComposer)
|
||||
public function __construct(private readonly MenuComposer $menuComposer)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ class MenuTwig extends AbstractExtension implements ContainerAwareInterface
|
||||
{
|
||||
return [new TwigFunction(
|
||||
'chill_menu',
|
||||
[$this, 'chillMenu'],
|
||||
$this->chillMenu(...),
|
||||
[
|
||||
'is_safe' => ['html'],
|
||||
'needs_environment' => true,
|
||||
|
Reference in New Issue
Block a user