Skip to content

Commit 891565a

Browse files
[VarExporter] Fix lazy-proxying readonly classes on PHP 8.3
1 parent bf6ae96 commit 891565a

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

Tests/Fixtures/php/services_dedup_lazy.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,7 @@ class stdClassProxy5a8a5eb extends \stdClass implements \Symfony\Component\VarEx
117117
{
118118
use \Symfony\Component\VarExporter\LazyProxyTrait;
119119

120-
private const LAZY_OBJECT_PROPERTY_SCOPES = [
121-
'lazyObjectReal' => [self::class, 'lazyObjectReal', null],
122-
"\0".self::class."\0lazyObjectReal" => [self::class, 'lazyObjectReal', null],
123-
];
120+
private const LAZY_OBJECT_PROPERTY_SCOPES = [];
124121
}
125122

126123
// Help opcache.preload discover always-needed symbols

Tests/Fixtures/php/services_wither_lazy.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ class WitherProxy94fa281 extends \Symfony\Component\DependencyInjection\Tests\Co
7676
use \Symfony\Component\VarExporter\LazyProxyTrait;
7777

7878
private const LAZY_OBJECT_PROPERTY_SCOPES = [
79-
'lazyObjectReal' => [self::class, 'lazyObjectReal', null],
80-
"\0".self::class."\0lazyObjectReal" => [self::class, 'lazyObjectReal', null],
8179
'foo' => [parent::class, 'foo', null],
8280
];
8381
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"psr/container": "^1.1|^2.0",
2121
"symfony/deprecation-contracts": "^2.1|^3",
2222
"symfony/service-contracts": "^1.1.6|^2.0|^3.0",
23-
"symfony/var-exporter": "^6.2"
23+
"symfony/var-exporter": "^6.2.7"
2424
},
2525
"require-dev": {
2626
"symfony/yaml": "^5.4|^6.0",

0 commit comments

Comments
 (0)