Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phpstan level 5,6 #241

Merged
merged 4 commits into from Aug 2, 2023
Merged

Phpstan level 5,6 #241

merged 4 commits into from Aug 2, 2023

Conversation

markkelnar
Copy link
Contributor

Increase and fix phpstan levels 5 and 6.

Reference issue

@@ -57,7 +67,7 @@ public function getVisitor( ValidationContext $context ) {
$context->reportError(
new Error(
self::deniedDocumentMessage(),
[ $node ]
$node
Copy link
Contributor Author

@markkelnar markkelnar Aug 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking deep in the graphql-php error constructor, this single $node gets converted to [$node]. That's why I feel this is the change needed.

src/Admin/Editor.php Outdated Show resolved Hide resolved
@markkelnar markkelnar merged commit 4e00e3a into wp-graphql:main Aug 2, 2023
8 checks passed
@markkelnar markkelnar deleted the phpstan-level-5 branch August 2, 2023 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants