From 1f8bee3c639c70eb431396716894fce20da640b9 Mon Sep 17 00:00:00 2001 From: Sonata CI Date: Wed, 3 Apr 2024 19:28:45 +0100 Subject: [PATCH] DevKit updates for 4.x branch (#2450) Co-authored-by: Vincent Langlet --- .php-cs-fixer.dist.php | 2 +- tests/Thumbnail/FormatThumbnailTest.php | 6 +++--- tests/Thumbnail/LiipImagineThumbnailTest.php | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index d197afd5b..67707a5e7 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -45,7 +45,7 @@ 'no_useless_return' => true, 'no_superfluous_elseif' => true, 'no_superfluous_phpdoc_tags' => ['allow_mixed' => true, 'remove_inheritdoc' => true], - 'nullable_type_declaration_for_default_null_value' => ['use_nullable_type_declaration' => true], + 'nullable_type_declaration_for_default_null_value' => true, 'ordered_class_elements' => true, 'ordered_imports' => ['sort_algorithm' => 'alpha', 'imports_order' => ['class', 'function', 'const']], 'phpdoc_order' => ['order' => ['var', 'param', 'throws', 'return', 'phpstan-var', 'psalm-var', 'phpstan-param', 'psalm-param', 'phpstan-return', 'psalm-return']], diff --git a/tests/Thumbnail/FormatThumbnailTest.php b/tests/Thumbnail/FormatThumbnailTest.php index 93c0ca5fc..4ac83c470 100644 --- a/tests/Thumbnail/FormatThumbnailTest.php +++ b/tests/Thumbnail/FormatThumbnailTest.php @@ -32,9 +32,9 @@ public function testGenerate(): void $referenceFile = new File('myfile', $filesystem); $formats = [ - 'admin' => ['height' => 50, 'width' => 50, 'quality' => 100, 'resizer' => null], - 'mycontext_medium' => ['height' => 500, 'width' => 500, 'quality' => 100, 'resizer' => null], - 'anothercontext_large' => ['height' => 500, 'width' => 500, 'quality' => 100, 'resizer' => null], + 'admin' => ['height' => 50, 'width' => 50, 'quality' => 100, 'resizer' => null], + 'mycontext_medium' => ['height' => 500, 'width' => 500, 'quality' => 100, 'resizer' => null], + 'anothercontext_large' => ['height' => 500, 'width' => 500, 'quality' => 100, 'resizer' => null], ]; $resizer = $this->createMock(ResizerInterface::class); diff --git a/tests/Thumbnail/LiipImagineThumbnailTest.php b/tests/Thumbnail/LiipImagineThumbnailTest.php index be34b8902..139247303 100644 --- a/tests/Thumbnail/LiipImagineThumbnailTest.php +++ b/tests/Thumbnail/LiipImagineThumbnailTest.php @@ -35,9 +35,9 @@ public function testGenerate(): void $referenceFile = new File('myfile', $filesystem); $formats = [ - 'admin' => ['height' => 50, 'width' => 50, 'quality' => 100], - 'mycontext_medium' => ['height' => 500, 'width' => 500, 'quality' => 100], - 'anothercontext_large' => ['height' => 500, 'width' => 500, 'quality' => 100], + 'admin' => ['height' => 50, 'width' => 50, 'quality' => 100], + 'mycontext_medium' => ['height' => 500, 'width' => 500, 'quality' => 100], + 'anothercontext_large' => ['height' => 500, 'width' => 500, 'quality' => 100], ]; $media = new Media();