From a2c462745240984d5c4da19831bf5c843796eca4 Mon Sep 17 00:00:00 2001 From: Ronald Marfoldi Date: Fri, 13 Feb 2026 16:29:25 +0100 Subject: [PATCH 1/2] Upgrade symfony/var-exporter to ^7.0|^8.0 from ^6.0|7.0 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c561f62..4710d3c 100644 --- a/composer.json +++ b/composer.json @@ -44,7 +44,7 @@ "symfony/security-bundle": "^7.0|^8.0", "symfony/uid": "^7.0|^8.0", "symfony/validator": "^7.0|^8.0", - "symfony/var-exporter": "^6.4|^7.0", + "symfony/var-exporter": "^7.0|^8.0", "symfony/yaml": "^7.0|^8.0" }, "require-dev": { From 11e7ea7f89b7638742bd6b235bbf64825ecdfca2 Mon Sep 17 00:00:00 2001 From: Ronald Marfoldi Date: Fri, 13 Feb 2026 16:34:10 +0100 Subject: [PATCH 2/2] Upgrade symfony/var-exporter to ^7.0|^8.0 from ^6.0|7.0 --- composer.json | 2 +- src/Security/Voter/AbstractVoter.php | 3 ++- tests/config/packages/doctrine.yaml | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 4710d3c..48a0bb9 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "ext-redis": "*", "ext-zend-opcache": "*", "anzusystems/contracts": "^4.0", - "anzusystems/serializer-bundle": "^5.0", + "anzusystems/serializer-bundle": "^6.0", "doctrine/dbal": "^4.0", "doctrine/lexer": "^3.0", "doctrine/orm": "^3.1", diff --git a/src/Security/Voter/AbstractVoter.php b/src/Security/Voter/AbstractVoter.php index 2cfe048..5c4753a 100644 --- a/src/Security/Voter/AbstractVoter.php +++ b/src/Security/Voter/AbstractVoter.php @@ -11,6 +11,7 @@ use AnzuSystems\Contracts\Security\Grant; use RuntimeException; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; +use Symfony\Component\Security\Core\Authorization\Voter\Vote; use Symfony\Component\Security\Core\Authorization\Voter\Voter; /** @@ -28,7 +29,7 @@ protected function supports(string $attribute, mixed $subject): bool return in_array($attribute, $this->getSupportedPermissions(), true); } - protected function voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token): bool + protected function voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token, ?Vote $vote = null): bool { /** @var AnzuUser $user */ $user = $token->getUser(); diff --git a/tests/config/packages/doctrine.yaml b/tests/config/packages/doctrine.yaml index f515fec..f1c267c 100644 --- a/tests/config/packages/doctrine.yaml +++ b/tests/config/packages/doctrine.yaml @@ -5,6 +5,7 @@ doctrine: DummyEnumType: AnzuSystems\CommonBundle\Tests\Doctrine\Type\DummyEnumType orm: auto_generate_proxy_classes: true + enable_native_lazy_objects: true naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware auto_mapping: false mappings: