Skip to content

Commit a8a6e0e

Browse files
committed
Merge branch '5.1'
* 5.1: Internal classes are not legacy. [HttpFoundation] Skip the cookie_max_age fixture on PHP 8. add choice_translation_domain tests to prevent further regressions Update validators.tr.xlf
2 parents bd341a4 + 3c2ff78 commit a8a6e0e

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
@@ -147,6 +147,10 @@ public function getMessage()
147147
public function isLegacy()
148148
{
149149
$class = $this->originatingClass();
150+
if ((new \ReflectionClass($class))->isInternal()) {
151+
return false;
152+
}
153+
150154
$method = $this->originatingMethod();
151155

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

0 commit comments

Comments
 (0)