diff --git a/composer.json b/composer.json index 7edeeaf..6da911b 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "type": "project", "require": { "php": "^8.2", - "webonyx/graphql-php": "^14.11", + "webonyx/graphql-php": "^15.0.1", "symfony/console": "^6.1", "illuminate/support": "^9.0", "symfony/dependency-injection": "^6.0", diff --git a/src/Fixes/NonNullFixer.php b/src/Fixes/NonNullFixer.php index 110fcd9..f4ba371 100644 --- a/src/Fixes/NonNullFixer.php +++ b/src/Fixes/NonNullFixer.php @@ -26,7 +26,6 @@ public function fix(ProblemDescriptor $problemDescriptor): void $this->nodeReplacerCollector->addNodeToReplace( $node, - /** @phpstan-ignore-next-line */ new NonNullTypeNode([ 'type' => $node, ]) diff --git a/src/Visitors/VisitorCollector.php b/src/Visitors/VisitorCollector.php index 42a9bd8..15e929c 100644 --- a/src/Visitors/VisitorCollector.php +++ b/src/Visitors/VisitorCollector.php @@ -24,6 +24,9 @@ use Worksome\Graphlint\Inspections\Inspection; use Worksome\Graphlint\ProblemsHolder; +/** + * @phpstan-import-type VisitorArray from Visitor + */ abstract class VisitorCollector { /** @@ -37,10 +40,13 @@ abstract public function getInspections(): iterable; abstract public function getSuppressors(): iterable; /** - * @return array + * @return array + * + * @phpstan-return VisitorArray */ public function getVisitor(ProblemsHolder $problemsHolder, AffectedInspections $affectedInspections): array { + /** @var array $visitors */ $visitors = array_map( fn(Inspection $inspection) => [ NodeKind::FIELD_DEFINITION => $this->wrapper(