Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0425370

Browse files
committedSep 12, 2020
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)
Please sign in to comment.