mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-27 09:05:01 +00:00
apply rector rules: php up to php82
This commit is contained in:
@@ -40,7 +40,7 @@ class FilterOrderHelperBuilder
|
||||
*/
|
||||
private array $userPickers = [];
|
||||
|
||||
public function __construct(private FormFactoryInterface $formFactory, private RequestStack $requestStack)
|
||||
public function __construct(private readonly FormFactoryInterface $formFactory, private readonly RequestStack $requestStack)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -18,7 +18,7 @@ use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
|
||||
class FilterOrderHelperFactory implements FilterOrderHelperFactoryInterface
|
||||
{
|
||||
public function __construct(private FormFactoryInterface $formFactory, private RequestStack $requestStack)
|
||||
public function __construct(private readonly FormFactoryInterface $formFactory, private readonly RequestStack $requestStack)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -31,7 +31,7 @@ class Templating extends AbstractExtension
|
||||
public function getFilters(): array
|
||||
{
|
||||
return [
|
||||
new TwigFilter('chill_render_filter_order_helper', [$this, 'renderFilterOrderHelper'], [
|
||||
new TwigFilter('chill_render_filter_order_helper', $this->renderFilterOrderHelper(...), [
|
||||
'needs_environment' => true, 'is_safe' => ['html'],
|
||||
]),
|
||||
];
|
||||
|
Reference in New Issue
Block a user