Skip to content

Commit

Permalink
Rector: Disable rule AssertCountWithZeroToAssertEmptyRector
Browse files Browse the repository at this point in the history
Update changelog
  • Loading branch information
roxblnfk committed Feb 10, 2025
1 parent 38a1d9f commit 917175f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## Unreleased

- **Bug Fixes**
- [spiral/telemetry] Telemetry info was not propagated into log records

## 3.15.0 - 2025-01-24

- Core
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
"mockery/mockery": "^1.6.12",
"phpunit/phpunit": "^10.5.41",
"ramsey/collection": "^1.3",
"rector/rector": "~2.0.7",
"rector/rector": "~2.0.9",
"spiral/code-style": "^2.2.2",
"spiral/nyholm-bridge": "^1.3",
"spiral/testing": "^2.8.3",
Expand Down
4 changes: 4 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitSelfCallRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
use Rector\PHPUnit\CodeQuality\Rector\MethodCall\AssertCountWithZeroToAssertEmptyRector;
use Rector\TypeDeclaration\Rector\Closure\AddClosureNeverReturnTypeRector;
use Rector\TypeDeclaration\Rector\Closure\ClosureReturnTypeRector;
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
Expand Down Expand Up @@ -125,6 +126,9 @@
MakeInheritedMethodVisibilitySameAsParentRector::class => [
__DIR__ . '/src/Models/tests/PublicEntity.php',
],

// Explicit behavior is more preferable
AssertCountWithZeroToAssertEmptyRector::class,
])
->withPhpSets(php81: true)
->withPreparedSets(deadCode: true, phpunitCodeQuality: true)
Expand Down

0 comments on commit 917175f

Please sign in to comment.