Skip to content

Commit 60336d0

Browse files
committed
Debug message
1 parent 65eacb2 commit 60336d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Dependency/ExportedNodeResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function resolve(string $fileName, \PhpParser\Node $node): ?ExportedNode
154154
if ($node instanceof Node\Stmt\PropertyProperty) {
155155
$parentNode = $node->getAttribute('parent');
156156
if (!$parentNode instanceof Property) {
157-
throw new \PHPStan\ShouldNotHappenException();
157+
throw new \PHPStan\ShouldNotHappenException(sprintf('Expected node type %s, %s occurred.', Property::class, is_object($parentNode) ? get_class($parentNode) : gettype($parentNode)));
158158
}
159159
if ($parentNode->isPrivate()) {
160160
return null;

0 commit comments

Comments
 (0)