8000 require PHP 8.3 to dump lazy proxies for readonly classes · symfony/symfony@b6506fe · GitHub
[go: up one dir, main page]

Skip to content

Commit b6506fe

Browse files
committed
require PHP 8.3 to dump lazy proxies for readonly classes
1 parent 84c231e commit b6506fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sr E37E c/Symfony/Component/DependencyInjection/LazyProxy/PhpDumper/LazyServiceDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function getProxyCode(Definition $definition, ?string $id = null): string
105105

106106
if ($asGhostObject) {
107107
try {
108-
return (\PHP_VERSION_ID >= 80200 && $class?->isReadOnly() ? 'readonly ' : '').'class '.$proxyClass.ProxyHelper::generateLazyGhost($class);
108+
return (\PHP_VERSION_ID >= 80300 && $class?->isReadOnly() ? 'readonly ' : '').'class '.$proxyClass.ProxyHelper::generateLazyGhost($class);
109109
} catch (LogicException $e) {
110110
throw new InvalidArgumentException(sprintf('Cannot generate lazy ghost for service "%s".', $id ?? $definition->getClass()), 0, $e);
111111
}

src/Symfony/Component/DependencyInjection/Tests/LazyProxy/PhpDumper/LazyServiceDumperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function testInvalidClass()
5555
}
5656

5757
/**
58-
* @requires PHP 8.2
58+
* @requires PHP 8.3
5959
*/
6060
public function testReadonlyClass()
6161
{

0 commit comments

Comments
 (0)
0