Skip to content

Commit 1f11f1d

Browse files
authored
Fix CS and SA (#141)
1 parent cb260e0 commit 1f11f1d

17 files changed

Lines changed: 55 additions & 55 deletions

File tree

phpstan-baseline.neon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ parameters:
7373
path: src/Cache/RouteMetadata/YamlMetadataProvider.php
7474

7575
-
76-
message: '#^Comparison operation "\>\=" between 0 and 1 is always false\.$#'
77-
identifier: greaterOrEqual.alwaysFalse
76+
message: '#^Comparison operation "\>\=" between 1 and 1 is always true\.$#'
77+
identifier: greaterOrEqual.alwaysTrue
7878
count: 1
7979
path: src/Command/DebugCommand.php
8080

tests/Cache/PropertyResolver/Fixtures/DummyEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class DummyEntity
1010
{
1111
#[TargetedProperties('bar', 'baz')]
12-
public function getFoo()
12+
public function getFoo(): void
1313
{
1414
}
1515
}

tests/Cache/RouteMetadata/Fixtures/BarController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
class BarController
1010
{
1111
#[PurgeOn('foo', route: 'foo_bar1')]
12-
public function fooAction()
12+
public function fooAction(): void
1313
{
1414
}
1515

1616
#[PurgeOn('foo', route: ['foo_baz1', 'foo_baz3'])]
17-
public function bazAction()
17+
public function bazAction(): void
1818
{
1919
}
2020
}

tests/Cache/RouteMetadata/Fixtures/BazController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
#[PurgeOn('foo')]
1010
class BazController
1111
{
12-
public function __invoke()
12+
public function __invoke(): void
1313
{
1414
}
1515

1616
#[PurgeOn('bar')]
17-
public function barAction()
17+
public function barAction(): void
1818
{
1919
}
2020
}

tests/Cache/RouteMetadata/Fixtures/FooController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
class FooController
1010
{
1111
#[PurgeOn('bar')]
12-
public function barAction()
12+
public function barAction(): void
1313
{
1414
}
1515

1616
#[PurgeOn('baz1')]
1717
#[PurgeOn('baz2')]
18-
public function bazAction()
18+
public function bazAction(): void
1919
{
2020
}
2121
}

tests/Cache/Subscription/Fixtures/DummyController.php

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

77
class DummyController
88
{
9-
public function barAction()
9+
public function barAction(): void
1010
{
1111
}
1212
}

tests/DependencyInjection/Fixtures/DummyController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
class DummyController
1010
{
1111
#[PurgeOn('test')]
12-
public function methodWithPurgeOn()
12+
public function methodWithPurgeOn(): void
1313
{
1414
}
1515

16-
public function methodWithoutPurgeOn()
16+
public function methodWithoutPurgeOn(): void
1717
{
1818
}
1919

2020
#[PurgeOn('test')]
21-
public function anotherMethodWithPurgeOn()
21+
public function anotherMethodWithPurgeOn(): void
2222
{
2323
}
2424
}

tests/DependencyInjection/Fixtures/DummyControllerWithPurgeOn.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
#[PurgeOn('test')]
1010
class DummyControllerWithPurgeOn
1111
{
12-
public function __invoke()
12+
public function __invoke(): void
1313
{
1414
}
1515

1616
#[PurgeOn('test')]
17-
public function methodWithPurgeOn()
17+
public function methodWithPurgeOn(): void
1818
{
1919
}
2020
}

tests/DependencyInjection/Fixtures/DummyExpressionLanguageFunction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
#[AsExpressionLanguageFunction('function_class')]
1010
class DummyExpressionLanguageFunction
1111
{
12-
public function __invoke()
12+
public function __invoke(): void
1313
{
1414
}
1515

1616
#[AsExpressionLanguageFunction('function_foo')]
17-
public function foo()
17+
public function foo(): void
1818
{
1919
}
2020
}

tests/DependencyInjection/Fixtures/DummyRouteParamService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
#[AsRouteParamService('alias_class')]
1010
class DummyRouteParamService
1111
{
12-
public function __invoke()
12+
public function __invoke(): void
1313
{
1414
}
1515

1616
#[AsRouteParamService('alias_foo')]
17-
public function foo()
17+
public function foo(): void
1818
{
1919
}
2020
}

0 commit comments

Comments
 (0)