fix cs with php-cs-fixer 3.49

This commit is contained in:
Julien Fastré 2024-02-07 15:38:56 +01:00
parent 86613a9be9
commit 4bbad4fc61
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
4 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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';
} }

View File

@ -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;
} }

View File

@ -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;
} }