From 6b0dfb3426f9445af704dd5b94ccb876469e8773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Fri, 24 Oct 2025 13:59:54 +0200 Subject: [PATCH] chore: fix deprecations in preparation uf upgrading to symfony 7.3 --- .claude/settings.local.json | 3 +-- config/packages/doctrine.yaml | 3 ++- src/Controller/SecurityController.php | 2 +- src/Form/Model/ParticipantDto.php | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.claude/settings.local.json b/.claude/settings.local.json index a176c64..9baa587 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -3,9 +3,8 @@ "allow": [ "Bash(php -l:*)", "Bash(./vendor/bin/phpunit --testdox)", - "Bash(./vendor/bin/php-cs-fixer fix:*)", "Bash(./vendor/bin/php-cs-fixer fix:*)" ], "deny": [] } -} \ No newline at end of file +} diff --git a/config/packages/doctrine.yaml b/config/packages/doctrine.yaml index d42c52d..bb1b71b 100644 --- a/config/packages/doctrine.yaml +++ b/config/packages/doctrine.yaml @@ -11,10 +11,11 @@ doctrine: orm: auto_generate_proxy_classes: true enable_lazy_ghost_objects: true - report_fields_where_declared: true validate_xml_mapping: true naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware auto_mapping: true + controller_resolver: + auto_mapping: false mappings: App: type: attribute diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index 665c399..8733111 100644 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -27,7 +27,7 @@ class SecurityController extends AbstractController // authentication (see App\EventListener\AuthorizationCodeListener). $session = $request->getSession(); $targetPath = $session->get('_security.main.target_path'); - if (str_contains($targetPath, '/authorize')) { + if (null !== $targetPath && str_contains($targetPath, '/authorize')) { $session->set('_oauth2', true); } diff --git a/src/Form/Model/ParticipantDto.php b/src/Form/Model/ParticipantDto.php index f99a508..753d149 100644 --- a/src/Form/Model/ParticipantDto.php +++ b/src/Form/Model/ParticipantDto.php @@ -40,6 +40,7 @@ class ParticipantDto public ?int $personId = null; public ?string $status = null; public bool $mutable = false; + public bool $touched = false; #[Assert\NotBlank(message: 'Bitte angeben', groups: ['booking_edit', 'booking_create'])] public ?string $firstName = null;