Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Phpstan level 5,6 - #241

#241
Merged
markkelnar merged 4 commits into
wp-graphql:mainwp-graphql/wp-graphql-smart-cache:mainfrom
markkelnar:phpstan-level-5markkelnar/wp-graphql-smart-cache:phpstan-level-5Copy head branch name to clipboard
Aug 2, 2023
Merged

Phpstan level 5,6#241
markkelnar merged 4 commits into
wp-graphql:mainwp-graphql/wp-graphql-smart-cache:mainfrom
markkelnar:phpstan-level-5markkelnar/wp-graphql-smart-cache:phpstan-level-5Copy head branch name to clipboard

Conversation

@markkelnar

Copy link
Copy Markdown
Contributor

Increase and fix phpstan levels 5 and 6.

Reference issue

new Error(
self::deniedDocumentMessage(),
[ $node ]
$node

@markkelnar markkelnar Aug 2, 2023

Copy link
Copy Markdown
Contributor Author

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.

@markkelnar
markkelnar requested a review from jasonbahl August 2, 2023 15:22
Comment thread src/Admin/Editor.php Outdated
@markkelnar
markkelnar requested a review from jasonbahl August 2, 2023 15:49
@markkelnar
markkelnar merged commit 4e00e3a into wp-graphql:main Aug 2, 2023
@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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.