Internal classes are not legacy.
This commit is contained in:
parent
25941ffe73
commit
7d55e0c065
@ -143,6 +143,10 @@ class Deprecation
|
||||
public function isLegacy()
|
||||
{
|
||||
$class = $this->originatingClass();
|
||||
if ((new \ReflectionClass($class))->isInternal()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$method = $this->originatingMethod();
|
||||
|
||||
return 0 === strpos($method, 'testLegacy')
|
||||
|
Reference in New Issue
Block a user