From b660c087edb8efc1d4935ac8ba2c023c8c0c3ff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Machulda?= Date: Thu, 16 May 2024 14:54:52 +0200 Subject: [PATCH] Docs: Update comments - add missing and remove irrelevant --- ecs.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/ecs.php b/ecs.php index 9931a42..07aef91 100644 --- a/ecs.php +++ b/ecs.php @@ -348,9 +348,9 @@ TernaryToNullCoalescingFixer::class, // Unary operators should be placed adjacent (without a space) to their operands. UnaryOperatorSpacesFixer::class, - + // There should not be blank lines between docblock and the documented element. NoBlankLinesAfterPhpdocFixer::class, - + // There should not be empty PHPDoc blocks. NoEmptyPhpdocFixer::class, // PHPDoc should contain `@param` for all params. PhpdocAddMissingParamAnnotationFixer::class, @@ -442,17 +442,8 @@ // Promote constructor properties // For php-cs-fixer implementation @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/5956 RequireConstructorPropertyPromotionSniff::class, - - // switch -> match - // @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/5894 - - // Require \Stringable interface in classes implementing __toString() method - // > it may probably be a phpstan rule, more than cs rule - since it needs a class hierarchy to solve this - // @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/6235 - // Multi-line arguments list in function/method call must have a trailing comma RequireTrailingCommaInCallSniff::class, // TODO: will be redundant after https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7989 is merged and released - // Use `null-safe` operator `?->` where possible RequireNullSafeObjectOperatorSniff::class, ],