Skip to content

Commit 3072141

Browse files
authored
remove InfiniteLoop test, node must be changed on expression (#7706)
1 parent a9246a9 commit 3072141

File tree

8 files changed

+1
-147
lines changed

8 files changed

+1
-147
lines changed

phpstan.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,3 @@ parameters:
387387
-
388388
path: rules/TypeDeclaration/Rector/StmtsAwareInterface/IncreaseDeclareStrictTypesRector.php
389389
identifier: rector.noOnlyNullReturnInRefactor
390-
391-
# handle next
392-
-
393-
identifier: rector.noIntegerRefactorReturn
394-
paths:
395-
- tests/Issues/InfiniteLoop/Rector/MethodCall/InfinityLoopRector.php

src/NodeTypeResolver/PHPStan/Scope/NodeVisitor/SymfonyClosureNodeVisitor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function enterNode(Node $node): ?Node
3030
}
3131

3232
SimpleNodeTraverser::decorateWithAttributeValue(
33-
(array) $node->stmts,
33+
$node->stmts,
3434
AttributeKey::IS_INSIDE_SYMFONY_PHP_CLOSURE,
3535
true
3636
);

tests/Issues/InfiniteLoop/Fixture/de_morgan.php.inc

Lines changed: 0 additions & 37 deletions
This file was deleted.

tests/Issues/InfiniteLoop/Fixture/skip_some_method_call_infinity_already_transformed.php.inc

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/Issues/InfiniteLoop/Fixture/some_method_call_infinity.php.inc

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/Issues/InfiniteLoop/InfiniteLoopTest.php

Lines changed: 0 additions & 28 deletions
This file was deleted.

tests/Issues/InfiniteLoop/Rector/MethodCall/InfinityLoopRector.php

Lines changed: 0 additions & 48 deletions
This file was deleted.

tests/Issues/InfiniteLoop/config/infinite_loop.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)