Skip to content

Commit aaec784

Browse files
committed
Fixed build
1 parent 9f4b159 commit aaec784

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/Rules/DisallowedConstructs/DisallowedShortTernaryRule.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
use PhpParser\Node;
66
use PHPStan\Analyser\Scope;
77

8+
/**
9+
* @implements \PHPStan\Rules\Rule<\PhpParser\Node\Expr\Ternary>
10+
*/
811
class DisallowedShortTernaryRule implements \PHPStan\Rules\Rule
912
{
1013

@@ -13,11 +16,6 @@ public function getNodeType(): string
1316
return \PhpParser\Node\Expr\Ternary::class;
1417
}
1518

16-
/**
17-
* @param \PhpParser\Node\Expr\Ternary $node
18-
* @param \PHPStan\Analyser\Scope $scope
19-
* @return string[]
20-
*/
2119
public function processNode(Node $node, Scope $scope): array
2220
{
2321
if ($node->if !== null) {

tests/Rules/DisallowedConstructs/DisallowedShortTernaryRuleTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use PHPStan\Rules\Rule;
66

7+
/**
8+
* @extends \PHPStan\Testing\RuleTestCase<DisallowedShortTernaryRule>
9+
*/
710
class DisallowedShortTernaryRuleTest extends \PHPStan\Testing\RuleTestCase
811
{
912

0 commit comments

Comments
 (0)