diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index d197afd5..67707a5e 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/Block/Service/RssBlockServiceTest.php b/tests/Block/Service/RssBlockServiceTest.php index 096c66c9..c2f8e71e 100644 --- a/tests/Block/Service/RssBlockServiceTest.php +++ b/tests/Block/Service/RssBlockServiceTest.php @@ -69,12 +69,12 @@ public function testExecute(): void $this->twig->expects(static::once())->method('render') ->with('@SonataBlock/Block/block_core_rss.html.twig', [ - 'feeds' => false, - 'block' => $block, - 'settings' => [ - 'title' => 'foo', - 'url' => 'http://example.com', - ], + 'feeds' => false, + 'block' => $block, + 'settings' => [ + 'title' => 'foo', + 'url' => 'http://example.com', + ], ]); $service = new RssBlockService($this->twig); diff --git a/tests/Block/Service/TextBlockServiceTest.php b/tests/Block/Service/TextBlockServiceTest.php index f148dba1..c74d442c 100644 --- a/tests/Block/Service/TextBlockServiceTest.php +++ b/tests/Block/Service/TextBlockServiceTest.php @@ -63,8 +63,8 @@ public function testExecute(): void $this->twig->expects(static::once())->method('render') ->with('@SonataBlock/Block/block_core_text.html.twig', [ - 'block' => $block, - 'settings' => ['content' => 'foo'], + 'block' => $block, + 'settings' => ['content' => 'foo'], ]); $service = new TextBlockService($this->twig);