File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
app/code/Magento/GraphQl/Helper/Query/Logger
lib/internal/Magento/Framework/GraphQl/Query Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ private function gatherResponseInformation(HttpResponse $response) : array
133
133
* @throws SyntaxError
134
134
* @throws \Exception
135
135
*/
136
- private function getFieldCount ($ query ): int
136
+ private function getFieldCount (DocumentNode | string $ query ): int
137
137
{
138
138
if (!empty ($ query )) {
139
139
$ totalFieldCount = 0 ;
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public function __construct(QueryParser $queryParser = null)
43
43
*
44
44
* @return void
45
45
*/
46
- public function setQuery ($ query , array $ variables = null )
46
+ public function setQuery (DocumentNode | string $ query , array $ variables = null )
47
47
{
48
48
$ queryFields = [];
49
49
try {
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ public function execute(): void
90
90
* @param DocumentNode|string $query
91
91
* @throws GraphQlInputException
92
92
*/
93
- public function validateFieldCount ($ query ): void
93
+ public function validateFieldCount (DocumentNode | string $ query ): void
94
94
{
95
95
if (!empty ($ query )) {
96
96
$ totalFieldCount = 0 ;
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public function __construct(
73
73
*/
74
74
public function process (
75
75
Schema $ schema ,
76
- $ source ,
76
+ DocumentNode | string $ source ,
77
77
ContextInterface $ contextValue = null ,
78
78
array $ variableValues = null ,
79
79
string $ operationName = null
You can’t perform that action at this time.
0 commit comments