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)) {