From 39063944f975b746ba769c716c5f6ad3d229a505 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Wed, 4 Sep 2024 09:54:54 +0200 Subject: [PATCH] Make sure it still runs on lowest --- .php-cs-fixer.dist.php | 1 + src/ImageExtension.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index aef8e57..bf00999 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -46,6 +46,7 @@ 'fully_qualified_strict_types' => false, 'new_with_parentheses' => true, 'modernize_strpos' => false, + 'trailing_comma_in_multiline' => ['after_heredoc' => true, 'elements' => ['array_destructuring', 'arrays']], ]) ->setFinder($finder); diff --git a/src/ImageExtension.php b/src/ImageExtension.php index 3001d9e..1346501 100644 --- a/src/ImageExtension.php +++ b/src/ImageExtension.php @@ -100,7 +100,7 @@ public function __construct( array $defaultAttributes = [], array $defaultAdditionalTypes = [], bool $aspectRatio = false, - ?array $imageFormatConfiguration = null, + ?array $imageFormatConfiguration = null ) { if (null !== $placeholderPath) { $this->placeholderPath = rtrim($placeholderPath, '/') . '/'; @@ -193,7 +193,7 @@ private function createImage( $attributes = [], array $sources = [], ?array $lazyThumbnails = null, - array $additionalTypes = [], + array $additionalTypes = [] ): string { // Return an empty string if no one of the needed parameters is set. if (empty($media) || empty($attributes)) {