Internal classes are not legacy.

This commit is contained in:
Alexander M. Turek 2020-09-12 23:46:40 +02:00
parent 25941ffe73
commit 7d55e0c065

View File

@ -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')