Skip to content

Commit ffa9fe4

Browse files
authored
Update rules @return to use specific NodeVisitor:: constant per latest PHPStan (#336)
1 parent fa189e1 commit ffa9fe4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

rules/DowngradePhp81/Rector/FuncCall/DowngradeHashAlgorithmXxHashRector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public function getNodeTypes(): array
8989

9090
/**
9191
* @param If_|Ternary|FuncCall $node
92+
* @return null|NodeVisitor::DONT_TRAVERSE_CHILDREN|Node
9293
*/
9394
public function refactor(Node $node): null|int|Node
9495
{

rules/DowngradePhp82/Rector/FuncCall/DowngradeIteratorCountToArrayRector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ function test(array|Traversable $data) {
6868

6969
/**
7070
* @param Ternary|FuncCall $node
71+
* @return null|FuncCall|NodeVisitor::DONT_TRAVERSE_CHILDREN
7172
*/
7273
public function refactor(Node $node): null|FuncCall|int
7374
{

0 commit comments

Comments
 (0)