mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user