From a978d2039b62acf8ec825ad496d32aaae361ce68 Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Mon, 4 May 2020 07:07:35 +0300 Subject: [PATCH] Don't use deprecated method --- src/Hooks/TestCaseHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hooks/TestCaseHandler.php b/src/Hooks/TestCaseHandler.php index c182fe0..1c33a80 100644 --- a/src/Hooks/TestCaseHandler.php +++ b/src/Hooks/TestCaseHandler.php @@ -502,7 +502,7 @@ private static function getSpecials(ClassMethod $method): array if ($docblock) { try { - $parsed_comment = DocComment::parse((string)$docblock->getReformattedText(), $docblock->getLine()); + $parsed_comment = DocComment::parse((string)$docblock->getReformattedText(), $docblock->getStartLine()); } catch (DocblockParseException $e) { return []; }