1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Add start/end file offsets for better Psalm errors

This commit is contained in:
Matthew Brown 2017-07-08 22:06:49 -04:00
parent 67338c4bf5
commit 83a6f914a7

View File

@ -754,7 +754,12 @@ abstract class ClassLikeChecker extends SourceChecker implements StatementsSourc
new PhpParser\Node\Expr\StaticCall(
new PhpParser\Node\Name(['parent']),
'__construct',
$fake_constructor_stmt_args
$fake_constructor_stmt_args,
[
'line' => $this->class->getLine(),
'startFilePos' => $this->class->getAttribute('startFilePos'),
'endFilePos' => $this->class->getAttribute('endFilePos'),
]
),
];