Passed
Push — main ( 25077e...ed4839 )
by Anatoly
13:27 queued 07:49
created
tests/HydratorTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -604,7 +604,7 @@  discard block
 block discarded – undo
604 604
 
605 605
         $this->assertInvalidValueExceptionCount(1);
606 606
         // phpcs:ignore Generic.Files.LineLength
607
-        $this->assertInvalidValueExceptionMessage(0, 'This value is not a valid choice; expected values: ' . join(', ', Fixture\IntegerEnum::values()) . '.');
607
+        $this->assertInvalidValueExceptionMessage(0, 'This value is not a valid choice; expected values: '.join(', ', Fixture\IntegerEnum::values()).'.');
608 608
         $this->assertInvalidValueExceptionErrorCode(0, ErrorCode::INVALID_CHOICE);
609 609
         $this->assertInvalidValueExceptionPropertyPath(0, 'value');
610 610
         $this->createHydrator()->hydrate($object, ['value' => 42]);
@@ -741,7 +741,7 @@  discard block
 block discarded – undo
741 741
 
742 742
         $this->assertInvalidValueExceptionCount(1);
743 743
         // phpcs:ignore Generic.Files.LineLength
744
-        $this->assertInvalidValueExceptionMessage(0, 'This value is not a valid choice; expected values: ' . join(', ', Fixture\StringEnum::values()) . '.');
744
+        $this->assertInvalidValueExceptionMessage(0, 'This value is not a valid choice; expected values: '.join(', ', Fixture\StringEnum::values()).'.');
745 745
         $this->assertInvalidValueExceptionErrorCode(0, ErrorCode::INVALID_CHOICE);
746 746
         $this->assertInvalidValueExceptionPropertyPath(0, 'value');
747 747
         $this->createHydrator()->hydrate($object, ['value' => 'foo']);
@@ -893,7 +893,7 @@  discard block
 block discarded – undo
893 893
     {
894 894
         $object = new class {
895 895
             /** @Subtype(BuiltinType::BOOL, allowsNull=true) */
896
-            #[Subtype(BuiltinType::BOOL, allowsNull: true)]
896
+            #[Subtype(BuiltinType::BOOL, allowsNull : true)]
897 897
             public array $value;
898 898
         };
899 899
 
@@ -1278,7 +1278,7 @@  discard block
 block discarded – undo
1278 1278
     {
1279 1279
         $object = new class {
1280 1280
             /** @Subtype(BuiltinType::BOOL, allowsNull=true) */
1281
-            #[Subtype(BuiltinType::BOOL, allowsNull: true)]
1281
+            #[Subtype(BuiltinType::BOOL, allowsNull : true)]
1282 1282
             public Fixture\Collection $value;
1283 1283
         };
1284 1284
 
@@ -2049,7 +2049,7 @@  discard block
 block discarded – undo
2049 2049
 
2050 2050
         $this->assertInvalidValueExceptionCount(1);
2051 2051
         // phpcs:ignore Generic.Files.LineLength
2052
-        $this->assertInvalidValueExceptionMessage(0, 'This value is not a valid choice; expected values: ' . join(', ', Fixture\MyclabsEnum::toArray()) . '.');
2052
+        $this->assertInvalidValueExceptionMessage(0, 'This value is not a valid choice; expected values: '.join(', ', Fixture\MyclabsEnum::toArray()).'.');
2053 2053
         $this->assertInvalidValueExceptionErrorCode(0, ErrorCode::INVALID_CHOICE);
2054 2054
         $this->assertInvalidValueExceptionPropertyPath(0, 'value');
2055 2055
         $this->createHydrator()->hydrate($object, ['value' => 'foo']);
Please login to merge, or discard this patch.