Browse Source

Merge branch 'hotfix/fix_ci_20250731' into develop

Olivier Massot 4 months ago
parent
commit
ad5d41485d

+ 1 - 1
composer.json

@@ -78,7 +78,7 @@
     "dg/bypass-finals": "^1.4",
     "doctrine/doctrine-fixtures-bundle": "^3.4",
     "ergebnis/phpstan-rules": "^2.5",
-    "friendsofphp/php-cs-fixer": "^3.69",
+    "friendsofphp/php-cs-fixer": "3.85.*",
     "hautelook/alice-bundle": "^2.14",
     "justinrainbow/json-schema": "^6.1",
     "phpstan/extension-installer": "^1.2",

+ 2 - 1
config/packages/api_platform.yaml

@@ -30,7 +30,8 @@ api_platform:
         jsonld: [ 'application/ld+json' ]
         json: [ 'application/json' ]
     graphql:
-        graphql_playground: false
+        graphiql:
+            enabled: false
     use_symfony_listeners: true
     mercure:
         enabled: true

+ 3 - 3
src/Service/Access/Utils.php

@@ -19,9 +19,9 @@ use Symfony\Component\Security\Core\Role\RoleHierarchyInterface;
 class Utils
 {
     public function __construct(
-        readonly private RoleHierarchyInterface $roleHierarchy,
-        readonly private AccessRepository $accessRepository,
-        readonly private OptionalsRolesIterator $optionalsRolesIterator,
+        private readonly RoleHierarchyInterface $roleHierarchy,
+        private readonly AccessRepository $accessRepository,
+        private readonly OptionalsRolesIterator $optionalsRolesIterator,
     ) {
     }
 

+ 1 - 1
src/Service/ApiLegacy/ApiLegacyRequestService.php

@@ -25,7 +25,7 @@ class ApiLegacyRequestService extends ApiRequestService
         HttpClientInterface $apiLegacyClient,
         private readonly Security $security,
         private readonly JWTTokenManagerInterface $jwtManager,
-        readonly private string $internalRequestsToken,
+        private readonly string $internalRequestsToken,
     ) {
         parent::__construct($apiLegacyClient);
     }

+ 2 - 2
src/Service/Constraint/DateTimeConstraint.php

@@ -16,8 +16,8 @@ use Doctrine\ORM\EntityManagerInterface;
 class DateTimeConstraint extends AbstractTimeConstraintUtils implements TimeConstraintInterface
 {
     public function __construct(
-        readonly private EntityManagerInterface $entityManager,
-        readonly private OrganizationUtils $organizationUtils,
+        private readonly EntityManagerInterface $entityManager,
+        private readonly OrganizationUtils $organizationUtils,
     ) {
     }
 

+ 1 - 1
src/Service/Security/InternalRequestsService.php

@@ -27,7 +27,7 @@ class InternalRequestsService
     ];
 
     public function __construct(
-        readonly private string $internalRequestsToken,
+        private readonly string $internalRequestsToken,
         private Security $security,
     ) {
     }

+ 2 - 2
src/Service/Security/Module.php

@@ -17,8 +17,8 @@ use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
 class Module
 {
     public function __construct(
-        readonly private Reflection $reflection,
-        readonly private ParameterBagInterface $parameterBag,
+        private readonly Reflection $reflection,
+        private readonly ParameterBagInterface $parameterBag,
     ) {
     }
 

+ 1 - 1
src/Service/ServiceIterator/CronjobIterator.php

@@ -19,7 +19,7 @@ class CronjobIterator
      */
     public function __construct(
         #[AutowireIterator('app.cronjob')]
-        readonly private iterable $cronjobServices,
+        private readonly iterable $cronjobServices,
     ) {
     }
 

+ 1 - 1
src/Service/ServiceIterator/CurrentAccessExtensionIterator.php

@@ -12,7 +12,7 @@ class CurrentAccessExtensionIterator
     /**
      * @param iterable<AdditionalAccessExtensionInterface> $extensions
      */
-    public function __construct(readonly private iterable $extensions)
+    public function __construct(private readonly iterable $extensions)
     {
     }
 

+ 1 - 1
src/Service/ServiceIterator/EncoderIterator.php

@@ -17,7 +17,7 @@ class EncoderIterator
      * @param iterable<EncoderInterface> $encoders
      */
     public function __construct(
-        readonly private iterable $encoders,
+        private readonly iterable $encoders,
     ) {
     }
 

+ 1 - 1
src/Service/ServiceIterator/ExporterIterator.php

@@ -18,7 +18,7 @@ class ExporterIterator
      * @param iterable<ExporterInterface> $exportServices
      */
     public function __construct(
-        readonly private iterable $exportServices,
+        private readonly iterable $exportServices,
     ) {
     }
 

+ 1 - 1
src/Service/ServiceIterator/Mailer/BuilderIterator.php

@@ -18,7 +18,7 @@ class BuilderIterator
      * @param iterable<BuilderInterface> $builderServices
      */
     public function __construct(
-        readonly private iterable $builderServices,
+        private readonly iterable $builderServices,
     ) {
     }
 

+ 1 - 1
src/Service/ServiceIterator/OptionalsRolesIterator.php

@@ -12,7 +12,7 @@ class OptionalsRolesIterator
     /**
      * @param iterable<OptionalsRolesInterface> $optionalsRoles
      */
-    public function __construct(readonly private iterable $optionalsRoles)
+    public function __construct(private readonly iterable $optionalsRoles)
     {
     }
 

+ 1 - 1
src/Service/ServiceIterator/StorageIterator.php

@@ -18,7 +18,7 @@ class StorageIterator
      * @param iterable<FileStorageInterface> $storageServices
      */
     public function __construct(
-        readonly private iterable $storageServices,
+        private readonly iterable $storageServices,
     ) {
     }
 

+ 1 - 1
src/Service/Twig/AssetsExtension.php

@@ -20,7 +20,7 @@ use Twig\TwigFunction;
 class AssetsExtension extends AbstractExtension
 {
     public function __construct(
-        readonly private FileManager $fileManager,
+        private readonly FileManager $fileManager,
     ) {
     }
 

+ 1 - 1
src/Service/Utils/Reflection.php

@@ -11,7 +11,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
  */
 class Reflection
 {
-    public function __construct(readonly private ContainerInterface $container)
+    public function __construct(private readonly ContainerInterface $container)
     {
     }