fix psalm errors

This commit is contained in:
Julien Fastré 2022-10-31 18:00:41 +01:00
parent b5a9dac62e
commit 75f69859e6
4 changed files with 7 additions and 5 deletions

View File

@ -253,7 +253,7 @@ class ExportAddressHelper
return 0;
default:
throw new LogicException('this value is not supported for ' . $sanitizedKey . ': ' . $val);
throw new LogicException('this value is not supported for ' . $sanitizedKey . ': ' . $value);
}
};

View File

@ -680,10 +680,12 @@ final class ExportManagerTest extends KernelTestCase
return new ExportManager(
$logger ?? self::$container->get('logger'),
$em ?? self::$container->get('doctrine.orm.entity_manager'),
$authorizationChecker ?? self::$container->get('security.authorization_checker'),
$authorizationHelper ?? self::$container->get('chill.main.security.authorization.helper'),
$tokenStorage
$tokenStorage,
[],
[],
[]
);
}
}

View File

@ -187,7 +187,7 @@ class ListPerson implements ExportElementValidatedInterface, ListInterface, Grou
}
/**
* @param array{fields: string[], address_date: DateTimeImmutable} $data
* param array{fields: string[], address_date: DateTimeImmutable} $data
*/
public function initiateQuery(array $requiredModifiers, array $acl, array $data = [])
{

View File

@ -155,7 +155,7 @@ class ListPersonWithAccompanyingPeriod implements ExportElementValidatedInterfac
}
/**
* @param array{fields: string[], address_date: DateTimeImmutable} $data
* param array{fields: string[], address_date: DateTimeImmutable} $data
*/
public function initiateQuery(array $requiredModifiers, array $acl, array $data = [])
{