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

@@ -27,7 +27,7 @@ class TimelineReportProvider implements TimelineProviderInterface
{
public function __construct(protected EntityManager $em, protected AuthorizationHelper $helper, private readonly Security $security, protected CustomFieldsHelper $customFieldsHelper, protected $showEmptyValues) {}
public function fetchQuery($context, array $args)
public function fetchQuery($context, array $args): \Chill\MainBundle\Timeline\TimelineSingleQuery
{
$this->checkContext($context);
@@ -147,7 +147,7 @@ class TimelineReportProvider implements TimelineProviderInterface
*
* @throws \LogicException if the context is not supported
*/
private function checkContext($context)
private function checkContext($context): void
{
if ('person' !== $context && 'center' !== $context) {
throw new \LogicException("The context '{$context}' is not supported. Currently only 'person' and 'center' is supported");