Skip to content

Commit e2381af

Browse files
committed
lint
1 parent e70797b commit e2381af

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

src/Cache/Subscription/PurgeSubscriptionProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ private function validateIfClosure(\Closure $expression, string $routeName, stri
186186
}
187187
}
188188

189-
190189
private function validateExpression(Expression $expression, string $routeName): void
191190
{
192191
try {

tests/Cache/Subscription/PurgeSubscriptionProviderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ public function testWithClosures(RouteMetadata $routeMetadata, array $expectedSu
601601
{
602602
$routeMetadataProvider = $this->createMock(RouteMetadataProviderInterface::class);
603603
$routeMetadataProvider->method('provide')
604-
->willReturnCallback(function () use ($routeMetadata) {
604+
->willReturnCallback(static function () use ($routeMetadata) {
605605
yield $routeMetadata;
606606
});
607607

@@ -660,7 +660,7 @@ public function testInvalidClosures(\Closure $if, string $expectedMessage): void
660660
{
661661
$routeMetadataProvider = $this->createMock(RouteMetadataProviderInterface::class);
662662
$routeMetadataProvider->method('provide')
663-
->willReturnCallback(function () use ($if): iterable {
663+
->willReturnCallback(static function () use ($if): iterable {
664664
yield new RouteMetadata(
665665
routeName: 'foo',
666666
route: new Route('/{foo}'),
@@ -683,7 +683,7 @@ class: DummyEntity::class,
683683
public function getFunctions(): array
684684
{
685685
return [
686-
new ExpressionFunction('valid_function', function () {}, function () {}),
686+
new ExpressionFunction('valid_function', static function () {}, static function () {}),
687687
];
688688
}
689689
},

tests/Functional/Php85TestApplication/Controller/PlantController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ class PlantController
1818
#[AnnotationRoute('/plants/dry', name: 'dry_plants_list')]
1919
#[PurgeOn(Plant::class,
2020
if: static function (Plant $plant): bool {
21-
return $plant->getWaterLevel() === 0;
21+
return 0 === $plant->getWaterLevel();
2222
},
23-
actions: Action::Create
23+
actions: Action::Create,
2424
)]
2525
public function dryPlantsAction()
2626
{

tests/RouteProvider/UpdatedEntityRouteProviderTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use PHPUnit\Framework\Attributes\CoversClass;
88
use PHPUnit\Framework\Attributes\RequiresFunction;
9-
use PHPUnit\Framework\Attributes\RequiresMethod;
109
use PHPUnit\Framework\Attributes\TestWith;
1110
use PHPUnit\Framework\TestCase;
1211
use Psr\Container\ContainerInterface;

0 commit comments

Comments
 (0)