File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed
Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 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" : " *" ,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )) {
You can’t perform that action at this time.
0 commit comments