Skip to content

Commit 3c2ff78

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: 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 9b06f97 + 0425370 commit 3c2ff78

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)