Skip to content

Commit ecf3cec

Browse files
committed
chore: ignore deprecations from Symfony
Symfony 7.3 is not available to all of our users, so we cannot switch to native lazy objects, which require a PHP version higher than the lowest PHP version we support.
1 parent 0a714db commit ecf3cec

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Configuration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,7 @@ public function isLazyGhostObjectEnabled(): bool
11091109

11101110
public function setLazyGhostObjectEnabled(bool $flag): void
11111111
{
1112+
// @phpstan-ignore classConstant.deprecatedTrait (Because we support Symfony < 7.3)
11121113
if ($flag && ! trait_exists(LazyGhostTrait::class)) {
11131114
throw new LogicException(
11141115
'Lazy ghost objects cannot be enabled because the "symfony/var-exporter" library'

src/Proxy/ProxyFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ private function generateProxyClass(ClassMetadata $class, ?string $fileName, str
568568

569569
private function generateUseLazyGhostTrait(ClassMetadata $class): string
570570
{
571+
// @phpstan-ignore staticMethod.deprecated (Because we support Symfony < 7.3)
571572
$code = ProxyHelper::generateLazyGhost($class->getReflectionClass());
572573
$code = substr($code, 7 + (int) strpos($code, "\n{"));
573574
$code = substr($code, 0, (int) strpos($code, "\n}"));

0 commit comments

Comments
 (0)