Skip to content

Commit bd213fb

Browse files
committed
fix: add wpgraphql stubs for proper Psalm type resolution
1 parent 1824435 commit bd213fb

File tree

3 files changed

+54
-8
lines changed

3 files changed

+54
-8
lines changed

plugins/wpgraphql-logging/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"prefer-stable": true,
3535
"require-dev": {
3636
"automattic/vipwpcs": "^3.0",
37+
"axepress/wp-graphql-stubs": "^2.3",
3738
"codeception/lib-innerbrowser": "^4.0",
3839
"codeception/module-asserts": "^3.0",
3940
"codeception/module-cli": "^2.0",

plugins/wpgraphql-logging/composer.lock

Lines changed: 53 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/wpgraphql-logging/psalm.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,5 @@
4747

4848
<!-- WordPress admin includes not available during static analysis -->
4949
<MissingFile errorLevel="suppress"/>
50-
51-
<!-- GraphQL classes referenced in docblocks not available during static analysis -->
52-
<UndefinedDocblockClass>
53-
<errorLevel type="suppress">
54-
<referencedClass name="GraphQL\Server\OperationParams"/>
55-
</errorLevel>
56-
</UndefinedDocblockClass>
5750
</issueHandlers>
5851
</psalm>

0 commit comments

Comments
 (0)