mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix cs with php-cs-fixer 3.49
This commit is contained in:
parent
86613a9be9
commit
4bbad4fc61
@ -64,7 +64,7 @@ class AccompanyingPeriodStepHistory implements TrackCreationInterface, TrackUpda
|
|||||||
*
|
*
|
||||||
* @ORM\JoinColumn(nullable=true)
|
* @ORM\JoinColumn(nullable=true)
|
||||||
*/
|
*/
|
||||||
private ?AccompanyingPeriod\ClosingMotive $closingMotive = null;
|
private ?ClosingMotive $closingMotive = null;
|
||||||
|
|
||||||
public function getEndDate(): ?\DateTimeImmutable
|
public function getEndDate(): ?\DateTimeImmutable
|
||||||
{
|
{
|
||||||
@ -122,12 +122,12 @@ class AccompanyingPeriodStepHistory implements TrackCreationInterface, TrackUpda
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getClosingMotive(): ?AccompanyingPeriod\ClosingMotive
|
public function getClosingMotive(): ?ClosingMotive
|
||||||
{
|
{
|
||||||
return $this->closingMotive;
|
return $this->closingMotive;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setClosingMotive(?AccompanyingPeriod\ClosingMotive $closingMotive): self
|
public function setClosingMotive(?ClosingMotive $closingMotive): self
|
||||||
{
|
{
|
||||||
$this->closingMotive = $closingMotive;
|
$this->closingMotive = $closingMotive;
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ final readonly class ByClosingMotiveAggregator implements AggregatorInterface
|
|||||||
|
|
||||||
public function getLabels($key, array $values, mixed $data)
|
public function getLabels($key, array $values, mixed $data)
|
||||||
{
|
{
|
||||||
return function (null|int|string $value): string {
|
return function (int|string|null $value): string {
|
||||||
if ('_header' === $value) {
|
if ('_header' === $value) {
|
||||||
return 'export.aggregator.step_history.by_closing_motive.header';
|
return 'export.aggregator.step_history.by_closing_motive.header';
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ class ByStepAggregatorTest extends AbstractAggregatorTest
|
|||||||
public function getAggregator()
|
public function getAggregator()
|
||||||
{
|
{
|
||||||
$translator = new class () implements TranslatorInterface {
|
$translator = new class () implements TranslatorInterface {
|
||||||
public function trans(string $id, array $parameters = [], string $domain = null, string $locale = null)
|
public function trans(string $id, array $parameters = [], ?string $domain = null, ?string $locale = null)
|
||||||
{
|
{
|
||||||
return $id;
|
return $id;
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ class ByStepFilterTest extends AbstractFilterTest
|
|||||||
public function getFilter()
|
public function getFilter()
|
||||||
{
|
{
|
||||||
$translator = new class () implements TranslatorInterface {
|
$translator = new class () implements TranslatorInterface {
|
||||||
public function trans(string $id, array $parameters = [], string $domain = null, string $locale = null)
|
public function trans(string $id, array $parameters = [], ?string $domain = null, ?string $locale = null)
|
||||||
{
|
{
|
||||||
return $id;
|
return $id;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user