Skip to content

Commit

Permalink
[CI] Fixed CS & changed phpstan error
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Dec 18, 2024
1 parent 457a863 commit 3da28c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ parameters:
path: src/bundle/Controller/ObjectStateController.php

-
message: "#^Property Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\ObjectState\\\\ObjectStateCreateStruct\\:\\:\\$names \\(array\\<string\\>\\) does not accept array\\<int\\|string, string\\|null\\>\\.$#"
message: "#^Property Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\ObjectState\\\\ObjectStateCreateStruct\\:\\:\\$names \\(array\\<string\\>\\) does not accept array\\<string\\|null\\>\\.$#"
count: 1
path: src/bundle/Controller/ObjectStateController.php

Expand Down Expand Up @@ -691,7 +691,7 @@ parameters:
path: src/bundle/Controller/ObjectStateGroupController.php

-
message: "#^Property Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\ObjectState\\\\ObjectStateGroupCreateStruct\\:\\:\\$names \\(array\\<string\\>\\) does not accept array\\<int\\|string, string\\|null\\>\\.$#"
message: "#^Property Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\ObjectState\\\\ObjectStateGroupCreateStruct\\:\\:\\$names \\(array\\<string\\>\\) does not accept array\\<string\\|null\\>\\.$#"
count: 1
path: src/bundle/Controller/ObjectStateGroupController.php

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function testTransform(): void
{
$transformer = new DateTimePickerTransformer();
$dateTime = new DateTime('2021-01-01 00:00:00');
$this->assertSame($dateTime->getTimestamp(), $transformer->transform($dateTime));
self::assertSame($dateTime->getTimestamp(), $transformer->transform($dateTime));
}

/**
Expand Down Expand Up @@ -52,7 +52,7 @@ public function testReverseTransform(): void
{
$transformer = new DateTimePickerTransformer();
$dateTime = new DateTime('2021-01-01 00:00:00');
$this->assertEquals($dateTime, $transformer->reverseTransform($dateTime->getTimestamp()));
self::assertEquals($dateTime, $transformer->reverseTransform($dateTime->getTimestamp()));
}

/**
Expand Down

0 comments on commit 3da28c4

Please sign in to comment.