Skip to content

Commit 0425370

Browse files
committed
Internal classes are not legacy.
1 parent d7d0be8 commit 0425370

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

DeprecationErrorHandler/Deprecation.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ public function getMessage()
143143
public function isLegacy()
144144
{
145145
$class = $this->originatingClass();
146+
if ((new \ReflectionClass($class))->isInternal()) {
147+
return false;
148+
}
149+
146150
$method = $this->originatingMethod();
147151

148152
return 0 === strpos($method, 'testLegacy')

0 commit comments

Comments
 (0)