Skip to content

Commit f2f94fd

Browse files
Merge branch '4.4' into 5.2
* 4.4: fix reported class when deprecated method is static
2 parents f652f4e + a344075 commit f2f94fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: DeprecationErrorHandler/Deprecation.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function __construct($message, array $trace, $file)
8484
$this->getOriginalFilesStack();
8585
array_splice($this->originalFilesStack, 0, $j, [$this->triggeringFile]);
8686

87-
if (preg_match('/(?|"([^"]++)" that is deprecated|should implement method "([^:]++))/', $message, $m) || preg_match('/^(?:The|Method) "([^":]++)/', $message, $m)) {
87+
if (preg_match('/(?|"([^"]++)" that is deprecated|should implement method "(?:static )?([^:]++))/', $message, $m) || preg_match('/^(?:The|Method) "([^":]++)/', $message, $m)) {
8888
$this->triggeringFile = (new \ReflectionClass($m[1]))->getFileName();
8989
array_unshift($this->originalFilesStack, $this->triggeringFile);
9090
}

0 commit comments

Comments
 (0)