@@ -37,16 +37,16 @@ discard block |
||
| 37 | 37 | use InternalPropertiesEmulationTrait; |
| 38 | 38 | use AttributeResolverTrait; |
| 39 | 39 | |
| 40 | - private Property|Param $propertyOrPromotedParam; |
|
| 40 | + private Property | Param $propertyOrPromotedParam; |
|
| 41 | 41 | |
| 42 | - private PropertyItem|Param $propertyItemOrPromotedParam; |
|
| 42 | + private PropertyItem | Param $propertyItemOrPromotedParam; |
|
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * Name of the class |
| 46 | 46 | */ |
| 47 | 47 | private string $className; |
| 48 | 48 | |
| 49 | - private \ReflectionUnionType|\ReflectionNamedType|\ReflectionIntersectionType|null $type = null; |
|
| 49 | + private \ReflectionUnionType | \ReflectionNamedType | \ReflectionIntersectionType | null $type = null; |
|
| 50 | 50 | |
| 51 | 51 | private mixed $defaultValue = null; |
| 52 | 52 | |
@@ -68,8 +68,8 @@ discard block |
||
| 68 | 68 | public function __construct( |
| 69 | 69 | string $className, |
| 70 | 70 | string $propertyName, |
| 71 | - Property|Param|null $propertyOrPromotedParam = null, |
|
| 72 | - PropertyItem|Param|null $propertyItemOrPromotedParam = null |
|
| 71 | + Property | Param | null $propertyOrPromotedParam = null, |
|
| 72 | + PropertyItem | Param | null $propertyItemOrPromotedParam = null |
|
| 73 | 73 | ) { |
| 74 | 74 | $this->className = ltrim($className, '\\'); |
| 75 | 75 | if (!$propertyOrPromotedParam || !$propertyItemOrPromotedParam) { |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | /** |
| 109 | 109 | * Returns an AST-node for property item |
| 110 | 110 | */ |
| 111 | - public function getNode(): PropertyItem|Param |
|
| 111 | + public function getNode(): PropertyItem | Param |
|
| 112 | 112 | { |
| 113 | 113 | return $this->propertyItemOrPromotedParam; |
| 114 | 114 | } |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | /** |
| 117 | 117 | * Returns an AST-node for property type |
| 118 | 118 | */ |
| 119 | - public function getTypeNode(): Property|Param |
|
| 119 | + public function getTypeNode(): Property | Param |
|
| 120 | 120 | { |
| 121 | 121 | return $this->propertyOrPromotedParam; |
| 122 | 122 | } |
@@ -154,9 +154,9 @@ discard block |
||
| 154 | 154 | return sprintf( |
| 155 | 155 | "Property [ %s %s$%s%s ]\n", |
| 156 | 156 | implode(' ', Reflection::getModifierNames($this->getModifiers())), |
| 157 | - $propertyType ? ReflectionType::convertToDisplayType($propertyType) . ' ' : '', |
|
| 157 | + $propertyType ? ReflectionType::convertToDisplayType($propertyType).' ' : '', |
|
| 158 | 158 | $this->getName(), |
| 159 | - $hasDefaultValue ? (' = ' . $defaultValue) : '' |
|
| 159 | + $hasDefaultValue ? (' = '.$defaultValue) : '' |
|
| 160 | 160 | ); |
| 161 | 161 | } |
| 162 | 162 | |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | /** |
| 172 | 172 | * @inheritDoc |
| 173 | 173 | */ |
| 174 | - public function getDocComment(): string|false |
|
| 174 | + public function getDocComment(): string | false |
|
| 175 | 175 | { |
| 176 | 176 | $docBlock = $this->propertyOrPromotedParam->getDocComment(); |
| 177 | 177 | |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | /** |
| 221 | 221 | * @inheritDoc |
| 222 | 222 | */ |
| 223 | - public function getValue(object|null $object = null): mixed |
|
| 223 | + public function getValue(object | null $object = null): mixed |
|
| 224 | 224 | { |
| 225 | 225 | if (!isset($object)) { |
| 226 | 226 | return $this->getDefaultValue(); |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | /** |
| 236 | 236 | * @inheritDoc |
| 237 | 237 | */ |
| 238 | - public function getType(): \ReflectionNamedType|\ReflectionUnionType|\ReflectionIntersectionType|null |
|
| 238 | + public function getType(): \ReflectionNamedType | \ReflectionUnionType | \ReflectionIntersectionType | null |
|
| 239 | 239 | { |
| 240 | 240 | return $this->type; |
| 241 | 241 | } |