mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-01 12:33:49 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -29,11 +29,6 @@ class TimelineBuilder implements ContainerAwareInterface
|
||||
{
|
||||
use \Symfony\Component\DependencyInjection\ContainerAwareTrait;
|
||||
|
||||
/**
|
||||
* @var \Doctrine\ORM\EntityManagerInterface
|
||||
*/
|
||||
private $em;
|
||||
|
||||
/**
|
||||
* Record provider.
|
||||
*
|
||||
@@ -52,9 +47,8 @@ class TimelineBuilder implements ContainerAwareInterface
|
||||
*/
|
||||
private $providersByContext = [];
|
||||
|
||||
public function __construct(EntityManagerInterface $em)
|
||||
public function __construct(private EntityManagerInterface $em)
|
||||
{
|
||||
$this->em = $em;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -260,13 +254,11 @@ class TimelineBuilder implements ContainerAwareInterface
|
||||
* get the template data from the provider for the given entity, by type.
|
||||
*
|
||||
* @param string $type
|
||||
* @param mixed $entity
|
||||
* @param string $context
|
||||
* @param mixed[] $args
|
||||
*
|
||||
* @return array the template data fetched from the provider
|
||||
*/
|
||||
private function getTemplateData($type, $entity, $context, array $args)
|
||||
private function getTemplateData($type, mixed $entity, $context, array $args)
|
||||
{
|
||||
foreach ($this->getProvidersByContext($context) as $provider) {
|
||||
if ($provider->supportsType($type)) {
|
||||
|
Reference in New Issue
Block a user