Skip to content

Commit

Permalink
feat(deps): update webonyx/graphql-php into latest version
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The webonyx/graphql-php from now on requires PHP version 7.4 and higher. So do we from now on.
  • Loading branch information
dadish committed May 14, 2023
1 parent 0c9eced commit 395c9b5
Show file tree
Hide file tree
Showing 102 changed files with 410 additions and 810 deletions.
16 changes: 8 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,30 @@ workflows:
main:
jobs:
- test:
name: test-php-7.2
name: test-php-7.4
context:
- github-credentials
- dockerhub-credentials
php: "7.2"
phpunit: "7.5"
php: "7.4"
phpunit: "9.6"
mysql: "5.7.34"

- test:
name: test-php-8.1
name: test-php-8.2
context:
- github-credentials
- dockerhub-credentials
php: "8.1"
phpunit: "9.5.10"
php: "8.2"
phpunit: "10.1"
mysql: "8.0.25"

- approve_release:
name: approve-release
<<: *release_branches
type: approval
requires:
- test-php-7.2
- test-php-8.1
- test-php-7.4
- test-php-8.2

- release:
name: release
Expand Down
10 changes: 5 additions & 5 deletions ProcessGraphQL.module
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ProcessGraphQL extends Process implements Module {
'singular' => true,
'autoload' => 'process=ProcessTemplate',
'icon' => 'object-group',
'requires' => array("PHP>=7.2", "ProcessWire>=3.0.62"),
'requires' => array("PHP>=7.4", "ProcessWire>=3.0.210"),
);
}

Expand Down Expand Up @@ -164,9 +164,9 @@ class ProcessGraphQL extends Process implements Module {
} else {
$requestData = $_POST;
}
$payload = isset($requestData['query']) ? $requestData['query'] : null;
if (is_null($payload)) {
$payload = isset($requestData['payload']) ? $requestData['payload'] : null;
$payload = isset($requestData['query']) ? $requestData['query'] : "";
if (empty($payload)) {
$payload = isset($requestData['payload']) ? $requestData['payload'] : "";
}
$variables = isset($requestData['variables']) ? $requestData['variables'] : null;

Expand All @@ -184,7 +184,7 @@ class ProcessGraphQL extends Process implements Module {
* Executes GraphQL api.
* @return string GraphQL api JSON response.
*/
public function ___executeGraphQL($payload = null, $variables = null)
public function ___executeGraphQL($payload = "", $variables = null)
{
if (!$payload) {
$request = $this->getRequest();
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
}
],
"require": {
"php": "^7.1||^8.0",
"webonyx/graphql-php": "^14.11.3"
"php": "^7.4||^8.0",
"webonyx/graphql-php": "^15.4.0"
},
"require-dev": {
"processwire/processwire": "dev-dev",
"processwire/site-default": "1.0.0",
"ryancramerdesign/fieldtypemapmarker": "2.0.9",
"dadish/graphqlfieldtypemapmarker": "2.0.0",
"phpunit/phpunit": "9.5.10"
"phpunit/phpunit": "10.1"
},
"repositories": [
{
Expand Down
Loading

0 comments on commit 395c9b5

Please sign in to comment.