Rector changes and immplementations of required methods

This commit is contained in:
2025-05-22 17:47:07 +02:00
parent 053b92b77c
commit 17db59d221
1138 changed files with 2656 additions and 2616 deletions

View File

@@ -21,7 +21,7 @@ use Symfony\Component\DependencyInjection\Definition;
class CRUDControllerCompilerPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
$crudConfig = $container->getParameter('chill_main_crud_route_loader_config');
$apiConfig = $container->getParameter('chill_main_api_route_loader_config');

View File

@@ -695,7 +695,7 @@ class CRUDController extends AbstractController
/**
* @return \Chill\MainBundle\Entity\Center[]
*/
protected function getReachableCenters(string $role, ?Scope $scope = null)
protected function getReachableCenters(string $role, ?Scope $scope = null): array
{
return $this->getAuthorizationHelper()
->getReachableCenters($this->getUser(), $role, $scope);

View File

@@ -94,7 +94,7 @@ class Resolver
/**
* @return bool
*/
public function hasAction($crudName, $action)
public function hasAction($crudName, $action): bool
{
return \array_key_exists(
$action,

View File

@@ -39,7 +39,7 @@ class CRUDRoutesLoader extends Loader
*
* @param mixed|null $type
*/
public function load($resource, $type = null): RouteCollection
public function load(mixed $resource, $type = null): RouteCollection
{
if (true === $this->isLoaded) {
throw new \RuntimeException('Do not add the "CRUD" loader twice');