From 0ecfac57990b6907425f9fb6018595a8b897c9c1 Mon Sep 17 00:00:00 2001 From: Alex Bouma Date: Thu, 5 Sep 2024 11:08:27 +0200 Subject: [PATCH] Fix CS --- .php-cs-fixer.dist.php | 7 ++++--- src/Logger/DebugFileLogger.php | 5 +++-- src/Logger/DebugStdOutLogger.php | 5 +++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 3975a591f..6a94c4c5c 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -18,9 +18,6 @@ ], 'self_accessor' => false, 'modernize_strpos' => false, - 'nullable_type_declaration_for_default_null_value' => [ - 'use_nullable_type_declaration' => true, - ], 'no_superfluous_phpdoc_tags' => [ 'allow_mixed' => true, ], @@ -33,6 +30,10 @@ 'method' => 'multi', 'property' => 'multi', ], + 'trailing_comma_in_multiline' => [ + 'after_heredoc' => false, + 'elements' => ['arrays'], + ], ]) ->setRiskyAllowed(true) ->setFinder( diff --git a/src/Logger/DebugFileLogger.php b/src/Logger/DebugFileLogger.php index abee3948d..4875baa75 100644 --- a/src/Logger/DebugFileLogger.php +++ b/src/Logger/DebugFileLogger.php @@ -19,8 +19,9 @@ public function __construct(string $filePath) } /** - * @param mixed $level - * @param mixed[] $context + * @param mixed $level + * @param string|\Stringable $message + * @param mixed[] $context */ public function log($level, $message, array $context = []): void { diff --git a/src/Logger/DebugStdOutLogger.php b/src/Logger/DebugStdOutLogger.php index d83ee31ca..5b2da8faf 100644 --- a/src/Logger/DebugStdOutLogger.php +++ b/src/Logger/DebugStdOutLogger.php @@ -9,8 +9,9 @@ class DebugStdOutLogger extends AbstractLogger { /** - * @param mixed $level - * @param mixed[] $context + * @param mixed $level + * @param string|\Stringable $message + * @param mixed[] $context */ public function log($level, $message, array $context = []): void {