File tree 3 files changed +4
-8
lines changed
3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 12
12
],
13
13
"minimum-stability" : " dev" ,
14
14
"require" : {
15
- "php" : " ^7.4 | ^ 8.0" ,
15
+ "php" : " ^8.0" ,
16
16
"ext-dom" : " *" ,
17
17
"ext-json" : " *" ,
18
18
"codeception/codeception" : " ^5.0.0-alpha1" ,
19
19
"justinrainbow/json-schema" : " ~5.2.9" ,
20
- "softcreatr/jsonpath" : " ^0.7 | ^0. 8"
20
+ "softcreatr/jsonpath" : " ^0.8"
21
21
},
22
22
"require-dev" : {
23
23
"ext-libxml" : " *" ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ A REST module for Codeception
9
9
10
10
## Requirements
11
11
12
- * ` PHP 7.4 ` or higher.
12
+ * ` PHP 8 ` or higher.
13
13
14
14
## Installation
15
15
Original file line number Diff line number Diff line change @@ -18,12 +18,8 @@ class JsonArray
18
18
19
19
protected ?DOMDocument $ jsonXml = null ;
20
20
21
- public function __construct ($ jsonString )
21
+ public function __construct (string $ jsonString )
22
22
{
23
- if (!is_string ($ jsonString )) {
24
- throw new InvalidArgumentException ('$jsonString param must be a string. ' );
25
- }
26
-
27
23
$ jsonDecode = json_decode ($ jsonString , true );
28
24
29
25
if (!is_array ($ jsonDecode )) {
You can’t perform that action at this time.
0 commit comments