@@ -92,8 +92,7 @@ |
||
| 92 | 92 | $this->context = $context; |
| 93 | 93 | |
| 94 | 94 | $this->annotationReader = PHP_MAJOR_VERSION >= 8 ? |
| 95 | - new BuiltinAnnotationReader() : |
|
| 96 | - new NullAnnotationReader(); |
|
| 95 | + new BuiltinAnnotationReader() : new NullAnnotationReader(); |
|
| 97 | 96 | |
| 98 | 97 | $this->addTypeConverter(...self::defaultTypeConverters()); |
| 99 | 98 | } |
@@ -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 | )); |
@@ -51,8 +51,7 @@ discard block |
||
| 51 | 51 | $holder = $type->getHolder(); |
| 52 | 52 | |
| 53 | 53 | return $holder instanceof ReflectionProperty ? |
| 54 | - self::unsupportedPropertyType($type, $holder) : |
|
| 55 | - self::unsupportedParameterType($type, $holder); |
|
| 54 | + self::unsupportedPropertyType($type, $holder) : self::unsupportedParameterType($type, $holder); |
|
| 56 | 55 | } |
| 57 | 56 | |
| 58 | 57 | /** |
@@ -82,8 +81,7 @@ discard block |
||
| 82 | 81 | $holder = $parameter->getDeclaringFunction(); |
| 83 | 82 | |
| 84 | 83 | return $holder instanceof ReflectionMethod ? |
| 85 | - self::unsupportedMethodParameterType($type, $parameter, $holder) : |
|
| 86 | - self::unsupportedFunctionParameterType($type, $parameter, $holder); |
|
| 84 | + self::unsupportedMethodParameterType($type, $parameter, $holder) : self::unsupportedFunctionParameterType($type, $parameter, $holder); |
|
| 87 | 85 | } |
| 88 | 86 | |
| 89 | 87 | /** |
@@ -854,7 +854,7 @@ discard block |
||
| 854 | 854 | { |
| 855 | 855 | $object = new class { |
| 856 | 856 | /** @Subtype(BuiltinType::BOOL, allowsNull=true) */ |
| 857 | - #[Subtype(BuiltinType::BOOL, allowsNull: true)] |
|
| 857 | + #[Subtype(BuiltinType::BOOL, allowsNull : true)] |
|
| 858 | 858 | public array $value; |
| 859 | 859 | }; |
| 860 | 860 | |
@@ -1239,7 +1239,7 @@ discard block |
||
| 1239 | 1239 | { |
| 1240 | 1240 | $object = new class { |
| 1241 | 1241 | /** @Subtype(BuiltinType::BOOL, allowsNull=true) */ |
| 1242 | - #[Subtype(BuiltinType::BOOL, allowsNull: true)] |
|
| 1242 | + #[Subtype(BuiltinType::BOOL, allowsNull : true)] |
|
| 1243 | 1243 | public Stub\Collection $value; |
| 1244 | 1244 | }; |
| 1245 | 1245 | |