@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | public function build(array $parsedAttributes, UseStatements $useStatements): array |
| 39 | 39 | { |
| 40 | - return array_map(function (Property $attribute) use ($useStatements): Attribute { |
|
| 40 | + return array_map(function(Property $attribute) use ($useStatements): Attribute { |
|
| 41 | 41 | $variable = new Variable( |
| 42 | 42 | "\${$attribute->props[0]->name}", |
| 43 | 43 | $this->typeBuilder->fromAttributeType($attribute->type, $attribute->getDocComment(), $useStatements) |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | public function fromPromotedProperties(array $promotedProperties, UseStatements $useStatements): array |
| 56 | 56 | { |
| 57 | - return array_map(function (Node\Param $param) use ($useStatements): Attribute { |
|
| 57 | + return array_map(function(Node\Param $param) use ($useStatements): Attribute { |
|
| 58 | 58 | /** @var Node\Expr\Variable $var */ |
| 59 | 59 | $var = $param->var; |
| 60 | 60 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | public function constants(array $members): array |
| 45 | 45 | { |
| 46 | 46 | /** @var ClassConst[] $constants */ |
| 47 | - $constants = array_filter($members, static fn ($attribute): bool => $attribute instanceof ClassConst); |
|
| 47 | + $constants = array_filter($members, static fn($attribute): bool => $attribute instanceof ClassConst); |
|
| 48 | 48 | |
| 49 | 49 | /** @var ClassConst[] $filteredConstants */ |
| 50 | 50 | $filteredConstants = $this->filters->apply($constants); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** @var Property[] $properties */ |
| 67 | - $properties = array_filter($members, static fn ($attribute): bool => $attribute instanceof Property); |
|
| 67 | + $properties = array_filter($members, static fn($attribute): bool => $attribute instanceof Property); |
|
| 68 | 68 | |
| 69 | 69 | /** @var Property[] $filteredAttributes */ |
| 70 | 70 | $filteredAttributes = $this->filters->apply($properties); |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | { |
| 90 | 90 | $promotedProperties = array_filter( |
| 91 | 91 | $constructor->getParams(), |
| 92 | - static fn (Node\Param $param) => $param->flags !== 0 |
|
| 92 | + static fn(Node\Param $param) => $param->flags !== 0 |
|
| 93 | 93 | ); |
| 94 | 94 | |
| 95 | 95 | /** @var Node\Param[] $filteredPromotedProperties */ |