mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 11:03:50 +00:00
pipeline fixes for phpstan, cs-fixer, rector
This commit is contained in:
@@ -42,7 +42,7 @@ class UserRender implements ChillEntityRenderInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array{main_scope?: bool, user_job?: bool, absence?: bool, at_date?: DateTimeImmutable|DateTime|null} $options
|
||||
* @param array $options
|
||||
*
|
||||
* @throws LoaderError
|
||||
* @throws RuntimeError
|
||||
@@ -54,7 +54,7 @@ class UserRender implements ChillEntityRenderInterface
|
||||
|
||||
if (null === $opts['at_date']) {
|
||||
$opts['at_date'] = $this->clock->now();
|
||||
} elseif ($opts['at_date'] instanceof DateTime) {
|
||||
} elseif ($opts['at_date'] instanceof \DateTime) {
|
||||
$opts['at_date'] = DateTimeImmutable::createFromMutable($opts['at_date']);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ class UserRender implements ChillEntityRenderInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array{main_scope?: bool, user_job?: bool, absence?: bool, at_date?: DateTimeImmutable|DateTime|null} $options
|
||||
* @param array $options
|
||||
*/
|
||||
public function renderString($entity, array $options): string
|
||||
{
|
||||
@@ -75,7 +75,7 @@ class UserRender implements ChillEntityRenderInterface
|
||||
|
||||
if (null === $opts['at_date']) {
|
||||
$opts['at_date'] = $this->clock->now();
|
||||
} elseif ($opts['at_date'] instanceof DateTime) {
|
||||
} elseif ($opts['at_date'] instanceof \DateTime) {
|
||||
$opts['at_date'] = DateTimeImmutable::createFromMutable($opts['at_date']);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user