DX: apply rector rules up to php8.0

This commit is contained in:
2023-04-15 01:05:37 +02:00
parent d8870e906f
commit dde3002100
714 changed files with 2348 additions and 9263 deletions

View File

@@ -35,17 +35,8 @@ abstract class AbstractTimelineAccompanyingPeriod implements TimelineProviderInt
{
private const SUPPORTED_CONTEXTS = ['person', 'center'];
protected EntityManager $em;
private AuthorizationHelper $authorizationHelper;
private Security $security;
public function __construct(EntityManager $em, Security $security, AuthorizationHelper $authorizationHelper)
public function __construct(protected EntityManager $em, private Security $security, private AuthorizationHelper $authorizationHelper)
{
$this->em = $em;
$this->security = $security;
$this->authorizationHelper = $authorizationHelper;
}
public function getEntities(array $ids)
@@ -125,12 +116,10 @@ abstract class AbstractTimelineAccompanyingPeriod implements TimelineProviderInt
* return the expected response for TimelineProviderInterface::getEntityTemplate.
*
* @param string $template the template for rendering
* @param mixed $entity
* @param string $context
*
* @return array
*/
protected function getBasicEntityTemplate($template, $entity, $context, array $args)
protected function getBasicEntityTemplate($template, mixed $entity, $context, array $args)
{
return [
'template' => $template,