From c49796a9184a532843e78e50df9e55708b92543a Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 10 Mar 2025 17:17:34 +0100 Subject: [PATCH] [VarExporter] Fix support for hooks and asymmetric visibility --- Tests/Fixtures/php/services_wither_lazy.php | 2 +- Tests/Fixtures/php/services_wither_lazy_non_shared.php | 2 +- composer.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/Fixtures/php/services_wither_lazy.php b/Tests/Fixtures/php/services_wither_lazy.php index d5c3738a6..81dd1a0b9 100644 --- a/Tests/Fixtures/php/services_wither_lazy.php +++ b/Tests/Fixtures/php/services_wither_lazy.php @@ -76,7 +76,7 @@ class WitherProxy580fe0f extends \Symfony\Component\DependencyInjection\Tests\Co use \Symfony\Component\VarExporter\LazyProxyTrait; private const LAZY_OBJECT_PROPERTY_SCOPES = [ - 'foo' => [parent::class, 'foo', null], + 'foo' => [parent::class, 'foo', null, 4], ]; } diff --git a/Tests/Fixtures/php/services_wither_lazy_non_shared.php b/Tests/Fixtures/php/services_wither_lazy_non_shared.php index 0867347a6..8952ebd6d 100644 --- a/Tests/Fixtures/php/services_wither_lazy_non_shared.php +++ b/Tests/Fixtures/php/services_wither_lazy_non_shared.php @@ -78,7 +78,7 @@ class WitherProxyDd381be extends \Symfony\Component\DependencyInjection\Tests\Co use \Symfony\Component\VarExporter\LazyProxyTrait; private const LAZY_OBJECT_PROPERTY_SCOPES = [ - 'foo' => [parent::class, 'foo', null], + 'foo' => [parent::class, 'foo', null, 4], ]; } diff --git a/composer.json b/composer.json index dc4a9feaf..86b05b917 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "psr/container": "^1.1|^2.0", "symfony/deprecation-contracts": "^2.5|^3", "symfony/service-contracts": "^2.5|^3.0", - "symfony/var-exporter": "^6.2.10|^7.0" + "symfony/var-exporter": "^6.4.20|^7.2.5" }, "require-dev": { "symfony/yaml": "^5.4|^6.0|^7.0",