We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | { |
| 13 | 13 | parent::__construct( |
| 14 | 14 | 'newObject', |
| 15 | - static fn ($className, $args = '[]') => "(new \\ReflectionClass($className))->newInstanceArgs($args)", |
|
| 16 | - static fn ($arguments, $className, $args = []) => new $className(...$args) |
|
| 15 | + static fn($className, $args = '[]') => "(new \\ReflectionClass($className))->newInstanceArgs($args)", |
|
| 16 | + static fn($arguments, $className, $args = []) => new $className(...$args) |
|
| 17 | 17 | ); |
| 18 | 18 | } |
| 19 | 19 | } |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | { |
| 14 | 14 | parent::__construct( |
| 15 | 15 | 'arguments', |
| 16 | - fn ($mapping, $data) => "$this->globalVars->get('container')->get('overblog_graphql.arguments_transformer')->getArguments($mapping, $data, \$info)", |
|
| 17 | - static fn (array $arguments, $mapping, $data) => $arguments[TypeGenerator::GLOBAL_VARS]->get('container')->get('overblog_graphql.arguments_transformer')->getArguments($mapping, $data, $arguments['info']) |
|
| 16 | + fn($mapping, $data) => "$this->globalVars->get('container')->get('overblog_graphql.arguments_transformer')->getArguments($mapping, $data, \$info)", |
|
| 17 | + static fn(array $arguments, $mapping, $data) => $arguments[TypeGenerator::GLOBAL_VARS]->get('container')->get('overblog_graphql.arguments_transformer')->getArguments($mapping, $data, $arguments['info']) |
|
| 18 | 18 | ); |
| 19 | 19 | } |
| 20 | 20 | } |
@@ -214,12 +214,12 @@ |
||
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | if (!empty($c->interfaces)) { |
| 217 | - $items = array_map(fn ($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $c->interfaces); |
|
| 217 | + $items = array_map(fn($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $c->interfaces); |
|
| 218 | 218 | $configLoader->addItem('interfaces', ArrowFunction::new(Collection::numeric($items, true))); |
| 219 | 219 | } |
| 220 | 220 | |
| 221 | 221 | if (!empty($c->types)) { |
| 222 | - $items = array_map(fn ($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $c->types); |
|
| 222 | + $items = array_map(fn($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $c->types); |
|
| 223 | 223 | $configLoader->addItem('types', ArrowFunction::new(Collection::numeric($items, true))); |
| 224 | 224 | } |
| 225 | 225 | |
@@ -27,6 +27,6 @@ |
||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | // @phpstan-ignore-next-line |
| 30 | - return array_map(fn (ReflectionAttribute $attribute) => $attribute->newInstance(), $attributes); |
|
| 30 | + return array_map(fn(ReflectionAttribute $attribute) => $attribute->newInstance(), $attributes); |
|
| 31 | 31 | } |
| 32 | 32 | } |
@@ -442,7 +442,7 @@ |
||
| 442 | 442 | $reflectionConstant = new ReflectionClassConstant($reflectionClass->getName(), $name); |
| 443 | 443 | $valueConfig = self::getDescriptionConfiguration(static::getMetadatas($reflectionConstant), true); |
| 444 | 444 | |
| 445 | - $enumValueAnnotation = current(array_filter($enumValues, fn ($enumValueAnnotation) => $enumValueAnnotation->name === $name)); |
|
| 445 | + $enumValueAnnotation = current(array_filter($enumValues, fn($enumValueAnnotation) => $enumValueAnnotation->name === $name)); |
|
| 446 | 446 | $valueConfig['value'] = $value; |
| 447 | 447 | |
| 448 | 448 | if (false !== $enumValueAnnotation) { |