@@ -18,7 +18,7 @@ index 165797504b..0c0922088a 100644
1818 {
1919 if (!static::$booted) {
2020diff --git a/src/Symfony/Component/BrowserKit/AbstractBrowser.php b/src/Symfony/Component/BrowserKit/AbstractBrowser.php
21- index ac25bdf4be..949a036abd 100644
21+ index b27ca37529..5b80175850 100644
2222--- a/src/Symfony/Component/BrowserKit/AbstractBrowser.php
2323+++ b/src/Symfony/Component/BrowserKit/AbstractBrowser.php
2424@@ -408,5 +408,5 @@ abstract class AbstractBrowser
@@ -209,23 +209,30 @@ index 64068fcc23..f29aaf1b94 100644
209209 {
210210 foreach ($command->getHelperSet() as $helper) {
211211diff --git a/src/Symfony/Component/Console/Command/Command.php b/src/Symfony/Component/Console/Command/Command.php
212- index 0a3f4b7889..18c2312399 100644
212+ index b41e691537..34de10fa70 100644
213213--- a/src/Symfony/Component/Console/Command/Command.php
214214+++ b/src/Symfony/Component/Console/Command/Command.php
215- @@ -188 ,5 +188 ,5 @@ class Command
215+ @@ -189 ,5 +189 ,5 @@ class Command
216216 * @return bool
217217 */
218218- public function isEnabled()
219219+ public function isEnabled(): bool
220220 {
221221 return true;
222- @@ -214 ,5 +214 ,5 @@ class Command
222+ @@ -215 ,5 +215 ,5 @@ class Command
223223 * @see setCode()
224224 */
225225- protected function execute(InputInterface $input, OutputInterface $output)
226226+ protected function execute(InputInterface $input, OutputInterface $output): int
227227 {
228228 throw new LogicException('You must override the execute() method in the concrete command class.');
229+ @@ -684,5 +684,5 @@ class Command
230+ * @throws InvalidArgumentException if the helper is not defined
231+ */
232+ - public function getHelper(string $name): mixed
233+ + public function getHelper(string $name): HelperInterface
234+ {
235+ if (null === $this->helperSet) {
229236diff --git a/src/Symfony/Component/Console/Formatter/OutputFormatter.php b/src/Symfony/Component/Console/Formatter/OutputFormatter.php
230237index 3c6b0efccd..121664f15a 100644
231238--- a/src/Symfony/Component/Console/Formatter/OutputFormatter.php
@@ -283,7 +290,7 @@ index 3af991a76f..742e2508f3 100644
283290
284291 /**
285292diff --git a/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php b/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php
286- index 70b6c91ff5..cfced387f3 100644
293+ index 2f1631ed30..a4b572771e 100644
287294--- a/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php
288295+++ b/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php
289296@@ -71,5 +71,5 @@ abstract class AbstractRecursivePass implements CompilerPassInterface
@@ -351,31 +358,31 @@ index d553203c43..1163f4b107 100644
351358 {
352359 $class = static::class;
353360diff --git a/src/Symfony/Component/DependencyInjection/Extension/ExtensionInterface.php b/src/Symfony/Component/DependencyInjection/Extension/ExtensionInterface.php
354- index f2373ed5ea..1eec21a938 100644
361+ index 4f66f18073..e96d867296 100644
355362--- a/src/Symfony/Component/DependencyInjection/Extension/ExtensionInterface.php
356363+++ b/src/Symfony/Component/DependencyInjection/Extension/ExtensionInterface.php
357- @@ -33 ,5 +33 ,5 @@ interface ExtensionInterface
364+ @@ -35 ,5 +35 ,5 @@ interface ExtensionInterface
358365 * @return string
359366 */
360367- public function getNamespace();
361368+ public function getNamespace(): string;
362369
363370 /**
364- @@ -40 ,5 +40 ,5 @@ interface ExtensionInterface
371+ @@ -42 ,5 +42 ,5 @@ interface ExtensionInterface
365372 * @return string|false
366373 */
367374- public function getXsdValidationBasePath();
368375+ public function getXsdValidationBasePath(): string|false;
369376
370377 /**
371- @@ -49 ,4 +49 ,4 @@ interface ExtensionInterface
378+ @@ -51 ,4 +51 ,4 @@ interface ExtensionInterface
372379 * @return string
373380 */
374381- public function getAlias();
375382+ public function getAlias(): string;
376383 }
377384diff --git a/src/Symfony/Component/DependencyInjection/LazyProxy/Instantiator/InstantiatorInterface.php b/src/Symfony/Component/DependencyInjection/LazyProxy/Instantiator/InstantiatorInterface.php
378- index a9d78115dd..8b3b420a9c 100644
385+ index 92c4b44845..ae557d8bca 100644
379386--- a/src/Symfony/Component/DependencyInjection/LazyProxy/Instantiator/InstantiatorInterface.php
380387+++ b/src/Symfony/Component/DependencyInjection/LazyProxy/Instantiator/InstantiatorInterface.php
381388@@ -31,4 +31,4 @@ interface InstantiatorInterface
@@ -568,10 +575,10 @@ index 1cb865fd66..f6f4efe7a7 100644
568575+ public function getName(): string;
569576 }
570577diff --git a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
571- index 45ff4a006c..611259b3b6 100644
578+ index d97064da8b..d76c73df90 100644
572579--- a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
573580+++ b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
574- @@ -448 ,5 +448 ,5 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
581+ @@ -463 ,5 +463 ,5 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
575582 * @return Response
576583 */
577584- protected function forward(Request $request, bool $catch = false, Response $entry = null)
@@ -776,7 +783,7 @@ index 6da0bcb4c8..16e9765b1d 100644
776783+ public function getTypes(string $class, string $property, array $context = []): ?array;
777784 }
778785diff --git a/src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php b/src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php
779- index 204e9b3341..8e624e1154 100644
786+ index 5f3a852d32..65a18bd924 100644
780787--- a/src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php
781788+++ b/src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php
782789@@ -253,5 +253,5 @@ abstract class AnnotationClassLoader implements LoaderInterface
@@ -808,7 +815,7 @@ index 6912f8a15b..caf18c886a 100644
808815+ public function getRouteCollection(): RouteCollection;
809816 }
810817diff --git a/src/Symfony/Component/Security/Core/Authentication/RememberMe/TokenProviderInterface.php b/src/Symfony/Component/Security/Core/Authentication/RememberMe/TokenProviderInterface.php
811- index eda4730004..00cfc5b9c7 100644
818+ index 9b32fdce31..fbbd65d8b7 100644
812819--- a/src/Symfony/Component/Security/Core/Authentication/RememberMe/TokenProviderInterface.php
813820+++ b/src/Symfony/Component/Security/Core/Authentication/RememberMe/TokenProviderInterface.php
814821@@ -28,5 +28,5 @@ interface TokenProviderInterface
@@ -819,11 +826,11 @@ index eda4730004..00cfc5b9c7 100644
819826
820827 /**
821828diff --git a/src/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.php b/src/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.php
822- index 7e401c3ff3..6b446ff376 100644
829+ index ba52c8ea65..e879a84982 100644
823830--- a/src/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.php
824831+++ b/src/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.php
825- @@ -36 ,4 +36 ,4 @@ interface VoterInterface
826- * @return int either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED
832+ @@ -37 ,4 +37 ,4 @@ interface VoterInterface
833+ * @psalm- return self::ACCESS_* must be transformed into @return on Symfony 7
827834 */
828835- public function vote(TokenInterface $token, mixed $subject, array $attributes);
829836+ public function vote(TokenInterface $token, mixed $subject, array $attributes): int;
@@ -889,7 +896,7 @@ index 480ea8ad6b..fa43d6a6e9 100644
889896+ public function getListeners(Request $request): array;
890897 }
891898diff --git a/src/Symfony/Component/Serializer/Encoder/DecoderInterface.php b/src/Symfony/Component/Serializer/Encoder/DecoderInterface.php
892- index f38069e471..0966eb3e89 100644
899+ index 5014b9bd51..757c76f546 100644
893900--- a/src/Symfony/Component/Serializer/Encoder/DecoderInterface.php
894901+++ b/src/Symfony/Component/Serializer/Encoder/DecoderInterface.php
895902@@ -35,5 +35,5 @@ interface DecoderInterface
@@ -906,7 +913,7 @@ index f38069e471..0966eb3e89 100644
906913+ public function supportsDecoding(string $format /* , array $context = [] */): bool;
907914 }
908915diff --git a/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
909- index 44ba45f581..3398115497 100644
916+ index 391cdcb39c..f637687e74 100644
910917--- a/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
911918+++ b/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
912919@@ -213,5 +213,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
@@ -931,7 +938,7 @@ index 44ba45f581..3398115497 100644
931938 {
932939 if (null !== $object = $this->extractObjectToPopulate($class, $context, self::OBJECT_TO_POPULATE)) {
933940diff --git a/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
934- index 511dd1c724..c319e1839b 100644
941+ index 714fb10e30..ea3f4428bf 100644
935942--- a/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
936943+++ b/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
937944@@ -139,5 +139,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
@@ -948,43 +955,43 @@ index 511dd1c724..c319e1839b 100644
948955+ public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
949956 {
950957 if (!isset($context['cache_key'])) {
951- @@ -265 ,5 +265 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
958+ @@ -230 ,5 +230 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
952959 * {@inheritdoc}
953960 */
954961- protected function instantiateObject(array &$data, string $class, array &$context, \ReflectionClass $reflectionClass, array|bool $allowedAttributes, string $format = null)
955962+ protected function instantiateObject(array &$data, string $class, array &$context, \ReflectionClass $reflectionClass, array|bool $allowedAttributes, string $format = null): object
956963 {
957964 if ($this->classDiscriminatorResolver && $mapping = $this->classDiscriminatorResolver->getMappingForClass($class)) {
958- @@ -327 ,5 +327 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
965+ @@ -292 ,5 +292 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
959966 * @return string[]
960967 */
961968- abstract protected function extractAttributes(object $object, string $format = null, array $context = []);
962969+ abstract protected function extractAttributes(object $object, string $format = null, array $context = []): array;
963970
964971 /**
965- @@ -334 ,5 +334 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
972+ @@ -299 ,5 +299 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
966973 * @return mixed
967974 */
968975- abstract protected function getAttributeValue(object $object, string $attribute, string $format = null, array $context = []);
969976+ abstract protected function getAttributeValue(object $object, string $attribute, string $format = null, array $context = []): mixed;
970977
971978 /**
972- @@ -341 ,5 +341 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
979+ @@ -306 ,5 +306 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
973980 * @param array $context
974981 */
975982- public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */)
976983+ public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */): bool
977984 {
978985 return class_exists($type) || (interface_exists($type, false) && $this->classDiscriminatorResolver && null !== $this->classDiscriminatorResolver->getMappingForClass($type));
979- @@ -349 ,5 +349 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
986+ @@ -314 ,5 +314 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
980987 * {@inheritdoc}
981988 */
982989- public function denormalize(mixed $data, string $type, string $format = null, array $context = [])
983990+ public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed
984991 {
985992 if (!isset($context['cache_key'])) {
986993diff --git a/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php b/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php
987- index 1c708738a1..3b6c9d5056 100644
994+ index ae3adbfe33..3a38429cf1 100644
988995--- a/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php
989996+++ b/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php
990997@@ -45,5 +45,5 @@ interface DenormalizerInterface
@@ -1001,7 +1008,7 @@ index 1c708738a1..3b6c9d5056 100644
10011008+ public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */): bool;
10021009 }
10031010diff --git a/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php b/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php
1004- index 741f19e50b..acf3be931b 100644
1011+ index 691e9c70f0..fc87f672e1 100644
10051012--- a/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php
10061013+++ b/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php
10071014@@ -37,5 +37,5 @@ interface NormalizerInterface
@@ -1077,7 +1084,7 @@ index ee1d68c78f..9baaabb04c 100644
10771084 {
10781085 return self::PROPERTY_CONSTRAINT;
10791086diff --git a/src/Symfony/Component/VarExporter/Internal/Exporter.php b/src/Symfony/Component/VarExporter/Internal/Exporter.php
1080- index f7ef22df5c..9439e9526f 100644
1087+ index b22d6ae609..31d1a25f9d 100644
10811088--- a/src/Symfony/Component/VarExporter/Internal/Exporter.php
10821089+++ b/src/Symfony/Component/VarExporter/Internal/Exporter.php
10831090@@ -36,5 +36,5 @@ class Exporter
0 commit comments