Skip to content

Commit

Permalink
Update to min php8 (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbojan committed Feb 5, 2022
1 parent 12ea54d commit 776da37
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
],
"minimum-stability": "dev",
"require": {
"php": "^7.4 | ^8.0",
"php": "^8.0",
"ext-dom": "*",
"ext-json": "*",
"codeception/codeception": "^5.0.0-alpha1",
"justinrainbow/json-schema": "~5.2.9",
"softcreatr/jsonpath": "^0.7 | ^0.8"
"softcreatr/jsonpath": "^0.8"
},
"require-dev": {
"ext-libxml": "*",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A REST module for Codeception

## Requirements

* `PHP 7.4` or higher.
* `PHP 8` or higher.

## Installation

Expand Down
6 changes: 1 addition & 5 deletions src/Codeception/Util/JsonArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@ class JsonArray

protected ?DOMDocument $jsonXml = null;

public function __construct($jsonString)
public function __construct(string $jsonString)
{
if (!is_string($jsonString)) {
throw new InvalidArgumentException('$jsonString param must be a string.');
}

$jsonDecode = json_decode($jsonString, true);

if (!is_array($jsonDecode)) {
Expand Down

0 comments on commit 776da37

Please sign in to comment.