We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b020249 commit 4628107Copy full SHA for 4628107
DeprecationErrorHandler/Deprecation.php
@@ -87,7 +87,7 @@ public function __construct($message, array $trace, $file)
87
$this->getOriginalFilesStack();
88
array_splice($this->originalFilesStack, 0, $j, [$this->triggeringFile]);
89
90
- if (preg_match('/(?|"([^"]++)" that is deprecated|should implement method "(?:static )?([^:]++))/', $message, $m) || (false === strpos($message, 'native return type declaration') && preg_match('/^(?:The|Method) "([^":]++)/', $message, $m))) {
+ if (preg_match('/(?|"([^"]++)" that is deprecated|should implement method "(?:static )?([^:]++))/', $message, $m) || (false === strpos($message, '()" will return') && false === strpos($message, 'native return type declaration') && preg_match('/^(?:The|Method) "([^":]++)/', $message, $m))) {
91
$this->triggeringFile = (new \ReflectionClass($m[1]))->getFileName();
92
array_unshift($this->originalFilesStack, $this->triggeringFile);
93
}
0 commit comments