Excuse me for the title, but I don't know how to write a better one: I will change it once the problem will be understood better.
I receive the exception ShouldNotHappenException analyzing my code.
This is the stack trace I get:
PHP Fatal error: Uncaught Rector\Exception\ShouldNotHappenException in /Users/Aerendir/Documents/Path/To/My/library/vendor/rector/rector/packages/PHPStan/src/Rector/Assign/PHPStormVarAnnotationRector.php:54
Stack trace:
#0 /Users/Aerendir/Documents/Path/To/My/library/vendor/rector/rector/src/Rector/AbstractRector.php(95): Rector\PHPStan\Rector\Assign\PHPStormVarAnnotationRector->refactor(Object(PhpParser\Node\Expr\Assign))
#1 /Users/Aerendir/Documents/Path/To/My/library/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(123): Rector\Rector\AbstractRector->enterNode(Object(PhpParser\Node\Expr\Assign))
#2 /Users/Aerendir/Documents/Path/To/My/library/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(223): PhpParser\NodeTraverser->traverseNode(Object(PhpParser\Node\Stmt\Expression))
#3 /Users/Aerendir/Documents/JooServer/_Projects/SerendipityHQ/C in /Users/Aerendir/Documents/Path/To/My/library/vendor/rector/rector/packages/PHPStan/src/Rector/Assign/PHPStormVarAnnotationRector.php on line 54
Fatal error: Uncaught Rector\Exception\ShouldNotHappenException in /Users/Aerendir/Documents/Path/To/My/library/vendor/rector/rector/packages/PHPStan/src/Rector/Assign/PHPStormVarAnnotationRector.php:54
Stack trace:
#0 /Users/Aerendir/Documents/Path/To/My/library/vendor/rector/rector/src/Rector/AbstractRector.php(95): Rector\PHPStan\Rector\Assign\PHPStormVarAnnotationRector->refactor(Object(PhpParser\Node\Expr\Assign))
#1 /Users/Aerendir/Documents/Path/To/My/library/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(123): Rector\Rector\AbstractRector->enterNode(Object(PhpParser\Node\Expr\Assign))
#2 /Users/Aerendir/Documents/Path/To/My/library/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(223): PhpParser\NodeTraverser->traverseNode(Object(PhpParser\Node\Stmt\Expression))
#3 /Users/Aerendir/Documents/JooServer/_Projects/SerendipityHQ/C in /Users/Aerendir/Documents/Path/To/My/library/vendor/rector/rector/packages/PHPStan/src/Rector/Assign/PHPStormVarAnnotationRector.php on line 54
What should I do? What other information do you need to fix the issue?
May be related to #1494
Excuse me for the title, but I don't know how to write a better one: I will change it once the problem will be understood better.
I receive the exception
ShouldNotHappenExceptionanalyzing my code.This is the stack trace I get:
What should I do? What other information do you need to fix the issue?
May be related to #1494