Skip to content

Commit 64cde1b

Browse files
pbojanTavoNiievez
authored andcommitted
Update to min php8
- Update softcreatr/jsonpath
1 parent 12ea54d commit 64cde1b

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
],
1313
"minimum-stability": "dev",
1414
"require": {
15-
"php": "^7.4 | ^8.0",
15+
"php": "^8.0",
1616
"ext-dom": "*",
1717
"ext-json": "*",
1818
"codeception/codeception": "^5.0.0-alpha1",
1919
"justinrainbow/json-schema": "~5.2.9",
20-
"softcreatr/jsonpath": "^0.7 | ^0.8"
20+
"softcreatr/jsonpath": "^0.8"
2121
},
2222
"require-dev": {
2323
"ext-libxml": "*",

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A REST module for Codeception
99

1010
## Requirements
1111

12-
* `PHP 7.4` or higher.
12+
* `PHP 8` or higher.
1313

1414
## Installation
1515

src/Codeception/Util/JsonArray.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,8 @@ class JsonArray
1818

1919
protected ?DOMDocument $jsonXml = null;
2020

21-
public function __construct($jsonString)
21+
public function __construct(string $jsonString)
2222
{
23-
if (!is_string($jsonString)) {
24-
throw new InvalidArgumentException('$jsonString param must be a string.');
25-
}
26-
2723
$jsonDecode = json_decode($jsonString, true);
2824

2925
if (!is_array($jsonDecode)) {

0 commit comments

Comments
 (0)