1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Narrow down the error location even further

This commit is contained in:
Matthew Brown 2017-07-08 22:11:55 -04:00
parent 83a6f914a7
commit 23f41b4543

View File

@ -756,9 +756,9 @@ abstract class ClassLikeChecker extends SourceChecker implements StatementsSourc
'__construct',
$fake_constructor_stmt_args,
[
'line' => $this->class->getLine(),
'startFilePos' => $this->class->getAttribute('startFilePos'),
'endFilePos' => $this->class->getAttribute('endFilePos'),
'line' => $this->class->extends->getLine(),
'startFilePos' => $this->class->extends->getAttribute('startFilePos'),
'endFilePos' => $this->class->extends->getAttribute('endFilePos'),
]
),
];