diff --git a/src/Psalm/Checker/MethodChecker.php b/src/Psalm/Checker/MethodChecker.php index 745d7bf56..30150cbe3 100644 --- a/src/Psalm/Checker/MethodChecker.php +++ b/src/Psalm/Checker/MethodChecker.php @@ -270,7 +270,7 @@ class MethodChecker extends FunctionLikeChecker new InvalidDocblock( 'Invalid type passed in docblock for ' . $this->getMethodId(), $this->getCheckedFileName(), - $function->getLine() + $method->getLine() ) )) { return false;