Skip to content

Commit

Permalink
Docs: Update comments - add missing and remove irrelevant
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed May 16, 2024
1 parent 815901d commit b660c08
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
],
Expand Down

0 comments on commit b660c08

Please sign in to comment.