Skip to content

Commit ecafd46

Browse files
committed
Fixed QA issues as WPGraphQL installed as a dev-dependency is causing issues.
1 parent 6899446 commit ecafd46

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

plugins/wpgraphql-logging/phpstan.neon.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ parameters:
3434
- identifier: empty.notAllowed
3535
-
3636
message: '#Constant WPGRAPHQL_LOGGING.* not found\.#'
37+
-
38+
message: '#GraphQL\\.*#'

plugins/wpgraphql-logging/psalm.xml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<directory name="src"/>
1919
</projectFiles>
2020

21-
2221
<plugins>
2322
<pluginClass class="PsalmWordPress\Plugin"/>
2423
</plugins>
@@ -48,5 +47,26 @@
4847
<file name="src/Admin/View/Templates/wpgraphql-logger-filters.php"/>
4948
</errorLevel>
5049
</PossiblyInvalidArgument>
50+
51+
<UndefinedClass>
52+
<errorLevel type="suppress">
53+
<referencedClass name="GraphQL\Executor\ExecutionResult"/>
54+
</errorLevel>
55+
<errorLevel type="suppress">
56+
<referencedClass name="GraphQL\Server\OperationParams"/>
57+
</errorLevel>
58+
<errorLevel type="suppress">
59+
<referencedClass name="WPGraphQL\Request"/>
60+
</errorLevel>
61+
<errorLevel type="suppress">
62+
<referencedClass name="WPGraphQL\WPSchema"/>
63+
</errorLevel>
64+
</UndefinedClass>
65+
66+
<UndefinedDocblockClass>
67+
<errorLevel type="suppress">
68+
<referencedClass name="GraphQL\Server\OperationParams"/>
69+
</errorLevel>
70+
</UndefinedDocblockClass>
5171
</issueHandlers>
5272
</psalm>

0 commit comments

Comments
 (0)