Skip to content

Commit

Permalink
Merge pull request #25 from worksome/feature/graphql-15
Browse files Browse the repository at this point in the history
feat: JIRA-8701 Update GraphQL PHP to 15.x
  • Loading branch information
owenvoke authored Jan 16, 2023
2 parents 5261e29 + 630515d commit ee1d03c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion src/Fixes/NonNullFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public function fix(ProblemDescriptor $problemDescriptor): void

$this->nodeReplacerCollector->addNodeToReplace(
$node,
/** @phpstan-ignore-next-line */
new NonNullTypeNode([
'type' => $node,
])
Expand Down
8 changes: 7 additions & 1 deletion src/Visitors/VisitorCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
use Worksome\Graphlint\Inspections\Inspection;
use Worksome\Graphlint\ProblemsHolder;

/**
* @phpstan-import-type VisitorArray from Visitor
*/
abstract class VisitorCollector
{
/**
Expand All @@ -37,10 +40,13 @@ abstract public function getInspections(): iterable;
abstract public function getSuppressors(): iterable;

/**
* @return array<string, callable>
* @return array<string, mixed>
*
* @phpstan-return VisitorArray
*/
public function getVisitor(ProblemsHolder $problemsHolder, AffectedInspections $affectedInspections): array
{
/** @var array<int, VisitorArray> $visitors */
$visitors = array_map(
fn(Inspection $inspection) => [
NodeKind::FIELD_DEFINITION => $this->wrapper(
Expand Down

0 comments on commit ee1d03c

Please sign in to comment.