Skip to content

Commit 8f9b2fd

Browse files
authored
Merge pull request #74 from dadish/nurguly/update-webonyx-graphql-php
feat(deps): update webonyx/graphql-php into latest version
2 parents 003d1e4 + 91ac9c7 commit 8f9b2fd

File tree

103 files changed

+450
-810
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+450
-810
lines changed

.circleci/config.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,30 @@ workflows:
1212
main:
1313
jobs:
1414
- test:
15-
name: test-php-7.2
15+
name: test-php-7.4
1616
context:
1717
- github-credentials
1818
- dockerhub-credentials
19-
php: "7.2"
20-
phpunit: "7.5"
19+
php: "7.4"
20+
phpunit: "9.6"
2121
mysql: "5.7.34"
2222

2323
- test:
24-
name: test-php-8.1
24+
name: test-php-8.2
2525
context:
2626
- github-credentials
2727
- dockerhub-credentials
28-
php: "8.1"
29-
phpunit: "9.5.10"
28+
php: "8.2"
29+
phpunit: "10.1"
3030
mysql: "8.0.25"
3131

3232
- approve_release:
3333
name: approve-release
3434
<<: *release_branches
3535
type: approval
3636
requires:
37-
- test-php-7.2
38-
- test-php-8.1
37+
- test-php-7.4
38+
- test-php-8.2
3939

4040
- release:
4141
name: release

ProcessGraphQL.module

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ProcessGraphQL extends Process implements Module {
2121
'singular' => true,
2222
'autoload' => 'process=ProcessTemplate',
2323
'icon' => 'object-group',
24-
'requires' => array("PHP>=7.2", "ProcessWire>=3.0.210"),
24+
'requires' => array("PHP>=7.4", "ProcessWire>=3.0.210"),
2525
);
2626
}
2727

@@ -164,9 +164,9 @@ class ProcessGraphQL extends Process implements Module {
164164
} else {
165165
$requestData = $_POST;
166166
}
167-
$payload = isset($requestData['query']) ? $requestData['query'] : null;
168-
if (is_null($payload)) {
169-
$payload = isset($requestData['payload']) ? $requestData['payload'] : null;
167+
$payload = isset($requestData['query']) ? $requestData['query'] : "";
168+
if (empty($payload)) {
169+
$payload = isset($requestData['payload']) ? $requestData['payload'] : "";
170170
}
171171
$variables = isset($requestData['variables']) ? $requestData['variables'] : null;
172172

@@ -184,7 +184,7 @@ class ProcessGraphQL extends Process implements Module {
184184
* Executes GraphQL api.
185185
* @return string GraphQL api JSON response.
186186
*/
187-
public function ___executeGraphQL($payload = null, $variables = null)
187+
public function ___executeGraphQL($payload = "", $variables = null)
188188
{
189189
if (!$payload) {
190190
$request = $this->getRequest();

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.1||^8.0",
14-
"webonyx/graphql-php": "^14.11.3"
13+
"php": "^7.4||^8.0",
14+
"webonyx/graphql-php": "^15.4.0"
1515
},
1616
"require-dev": {
1717
"processwire/processwire": "dev-dev",
1818
"processwire/site-default": "1.0.0",
1919
"ryancramerdesign/fieldtypemapmarker": "2.0.9",
2020
"dadish/graphqlfieldtypemapmarker": "2.0.0",
21-
"phpunit/phpunit": "9.5.10"
21+
"phpunit/phpunit": "10.1"
2222
},
2323
"repositories": [
2424
{

0 commit comments

Comments
 (0)