@@ -58,7 +58,7 @@ |
||
58 | 58 | // @codeCoverageIgnoreStart |
59 | 59 | if (!class_exists(AnnotationReader::class)) { |
60 | 60 | throw new LogicException(sprintf( |
61 | - 'The annotation reader {%s} requires the doctrine/annotations package, ' . |
|
61 | + 'The annotation reader {%s} requires the doctrine/annotations package, '. |
|
62 | 62 | 'run the command `composer require doctrine/annotations` to resolve it.', |
63 | 63 | __CLASS__, |
64 | 64 | )); |
@@ -91,8 +91,7 @@ |
||
91 | 91 | $holder = $parameter->getDeclaringFunction(); |
92 | 92 | |
93 | 93 | return $holder instanceof ReflectionMethod ? |
94 | - self::unsupportedMethodParameterType($type, $parameter, $holder) : |
|
95 | - self::unsupportedFunctionParameterType($type, $parameter, $holder); |
|
94 | + self::unsupportedMethodParameterType($type, $parameter, $holder) : self::unsupportedFunctionParameterType($type, $parameter, $holder); |
|
96 | 95 | } |
97 | 96 | |
98 | 97 | /** |
@@ -58,8 +58,8 @@ |
||
58 | 58 | return; |
59 | 59 | } // @codeCoverageIgnoreEnd |
60 | 60 | |
61 | - if (! $holder instanceof ReflectionProperty && |
|
62 | - ! $holder instanceof ReflectionParameter) { |
|
61 | + if (!$holder instanceof ReflectionProperty && |
|
62 | + !$holder instanceof ReflectionParameter) { |
|
63 | 63 | return; |
64 | 64 | } |
65 | 65 |
@@ -96,9 +96,9 @@ discard block |
||
96 | 96 | $typeConverter = $this->createMock(TypeConverterInterface::class); |
97 | 97 | |
98 | 98 | $typeConverter->method('castValue')->willReturnCallback( |
99 | - static function ($value, Type $type, array $path, array $context): Generator { |
|
99 | + static function($value, Type $type, array $path, array $context): Generator { |
|
100 | 100 | if ($type->getName() === \Closure::class) { |
101 | - yield static function () use ($value) { |
|
101 | + yield static function() use ($value) { |
|
102 | 102 | return $value; |
103 | 103 | }; |
104 | 104 | } |
@@ -630,7 +630,7 @@ discard block |
||
630 | 630 | |
631 | 631 | $this->assertInvalidValueExceptionCount(1); |
632 | 632 | // phpcs:ignore Generic.Files.LineLength |
633 | - $this->assertInvalidValueExceptionMessage(0, 'This value is not a valid choice; expected values: ' . join(', ', Fixture\IntegerEnum::values()) . '.'); |
|
633 | + $this->assertInvalidValueExceptionMessage(0, 'This value is not a valid choice; expected values: '.join(', ', Fixture\IntegerEnum::values()).'.'); |
|
634 | 634 | $this->assertInvalidValueExceptionErrorCode(0, ErrorCode::INVALID_CHOICE); |
635 | 635 | $this->assertInvalidValueExceptionPropertyPath(0, 'value'); |
636 | 636 | $this->createHydrator()->hydrate($object, ['value' => 42]); |
@@ -767,7 +767,7 @@ discard block |
||
767 | 767 | |
768 | 768 | $this->assertInvalidValueExceptionCount(1); |
769 | 769 | // phpcs:ignore Generic.Files.LineLength |
770 | - $this->assertInvalidValueExceptionMessage(0, 'This value is not a valid choice; expected values: ' . join(', ', Fixture\StringEnum::values()) . '.'); |
|
770 | + $this->assertInvalidValueExceptionMessage(0, 'This value is not a valid choice; expected values: '.join(', ', Fixture\StringEnum::values()).'.'); |
|
771 | 771 | $this->assertInvalidValueExceptionErrorCode(0, ErrorCode::INVALID_CHOICE); |
772 | 772 | $this->assertInvalidValueExceptionPropertyPath(0, 'value'); |
773 | 773 | $this->createHydrator()->hydrate($object, ['value' => 'foo']); |
@@ -919,7 +919,7 @@ discard block |
||
919 | 919 | { |
920 | 920 | $object = new class { |
921 | 921 | /** @Subtype(BuiltinType::BOOL, allowsNull=true) */ |
922 | - #[Subtype(BuiltinType::BOOL, allowsNull: true)] |
|
922 | + #[Subtype(BuiltinType::BOOL, allowsNull : true)] |
|
923 | 923 | public array $value; |
924 | 924 | }; |
925 | 925 | |
@@ -1304,7 +1304,7 @@ discard block |
||
1304 | 1304 | { |
1305 | 1305 | $object = new class { |
1306 | 1306 | /** @Subtype(BuiltinType::BOOL, allowsNull=true) */ |
1307 | - #[Subtype(BuiltinType::BOOL, allowsNull: true)] |
|
1307 | + #[Subtype(BuiltinType::BOOL, allowsNull : true)] |
|
1308 | 1308 | public Fixture\Collection $value; |
1309 | 1309 | }; |
1310 | 1310 | |
@@ -2094,7 +2094,7 @@ discard block |
||
2094 | 2094 | |
2095 | 2095 | $this->assertInvalidValueExceptionCount(1); |
2096 | 2096 | // phpcs:ignore Generic.Files.LineLength |
2097 | - $this->assertInvalidValueExceptionMessage(0, 'This value is not a valid choice; expected values: ' . join(', ', Fixture\MyclabsEnum::toArray()) . '.'); |
|
2097 | + $this->assertInvalidValueExceptionMessage(0, 'This value is not a valid choice; expected values: '.join(', ', Fixture\MyclabsEnum::toArray()).'.'); |
|
2098 | 2098 | $this->assertInvalidValueExceptionErrorCode(0, ErrorCode::INVALID_CHOICE); |
2099 | 2099 | $this->assertInvalidValueExceptionPropertyPath(0, 'value'); |
2100 | 2100 | $this->createHydrator()->hydrate($object, ['value' => 'foo']); |
@@ -11,11 +11,11 @@ |
||
11 | 11 | ]; |
12 | 12 | |
13 | 13 | if (PHP_VERSION_ID < 80000) { |
14 | - $config['includes'][] = __DIR__ . '/phpstan.php-lt-80.neon'; |
|
14 | + $config['includes'][] = __DIR__.'/phpstan.php-lt-80.neon'; |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | if (PHP_VERSION_ID < 80100) { |
18 | - $config['includes'][] = __DIR__ . '/phpstan.php-lt-81.neon'; |
|
18 | + $config['includes'][] = __DIR__.'/phpstan.php-lt-81.neon'; |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | return $config; |
@@ -13,7 +13,7 @@ |
||
13 | 13 | create(DirectoryTranslator::class) |
14 | 14 | ->constructor( |
15 | 15 | TranslationDomain::HYDRATOR, |
16 | - __DIR__ . '/../translations', |
|
16 | + __DIR__.'/../translations', |
|
17 | 17 | ), |
18 | 18 | ]), |
19 | 19 | ]; |