diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 2d1c135599..a306908806 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -656,7 +656,7 @@ parameters: path: src/bundle/Controller/ObjectStateController.php - - message: "#^Property Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\ObjectState\\\\ObjectStateCreateStruct\\:\\:\\$names \\(array\\\\) does not accept array\\\\.$#" + message: "#^Property Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\ObjectState\\\\ObjectStateCreateStruct\\:\\:\\$names \\(array\\\\) does not accept array\\\\.$#" count: 1 path: src/bundle/Controller/ObjectStateController.php @@ -691,7 +691,7 @@ parameters: path: src/bundle/Controller/ObjectStateGroupController.php - - message: "#^Property Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\ObjectState\\\\ObjectStateGroupCreateStruct\\:\\:\\$names \\(array\\\\) does not accept array\\\\.$#" + message: "#^Property Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\ObjectState\\\\ObjectStateGroupCreateStruct\\:\\:\\$names \\(array\\\\) does not accept array\\\\.$#" count: 1 path: src/bundle/Controller/ObjectStateGroupController.php diff --git a/tests/lib/Form/DataTransformer/DateTimePickerTransformerTest.php b/tests/lib/Form/DataTransformer/DateTimePickerTransformerTest.php index 5bfce9f805..21da6f3610 100644 --- a/tests/lib/Form/DataTransformer/DateTimePickerTransformerTest.php +++ b/tests/lib/Form/DataTransformer/DateTimePickerTransformerTest.php @@ -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)); } /** @@ -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())); } /**