File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ abstract class AbstractFunction extends JsonSerializable implements IFunction
57
57
public function __construct (array $ array )
58
58
{
59
59
$ this ->reset ();
60
- if (!array_key_exists (self ::JSON_NAME , $ array ) || !is_string ($ array [self ::JSON_NAME ])) {
60
+ if (!array_key_exists (self ::JSON_NAME , $ array ) || !is_string ($ array [self ::JSON_NAME ])) {
61
61
throw new InvalidArgumentException (
62
62
sprintf ('Missing %s "%s" ' , static ::class, self ::JSON_NAME )
63
63
);
@@ -360,7 +360,7 @@ public static function jsonDecode(string $json): IFunction
360
360
* Use the constructor of the implementing class.
361
361
*/
362
362
return new static ($ array );
363
- } catch (InvalidArgumentException | JsonException $ exception ) {
363
+ } catch (InvalidArgumentException | JsonException $ exception ) {
364
364
throw new InvalidArgumentException (
365
365
sprintf ('Invalid JSON: Expected JSON encoded %s! ' , static ::class),
366
366
0 ,
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public static function jsonDecode(string $json): IJsonSerializable
128
128
throw new InvalidArgumentException ('JSON did not decode into an array! ' );
129
129
}
130
130
return new self ($ array );
131
- } catch (InvalidArgumentException | JsonException $ exception ) {
131
+ } catch (InvalidArgumentException | JsonException $ exception ) {
132
132
throw new InvalidArgumentException (
133
133
sprintf ('Invalid JSON: Expected JSON encoded %s string! ' , self ::class),
134
134
0 ,
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public static function jsonDecode(string $json): IConfiguration
34
34
if (!is_array ($ config )) {
35
35
throw new InvalidArgumentException ('JSON did not decode into an array! ' );
36
36
}
37
- } catch (InvalidArgumentException | JsonException $ exception ) {
37
+ } catch (InvalidArgumentException | JsonException $ exception ) {
38
38
throw new InvalidArgumentException (
39
39
sprintf ('Invalid JSON: Expected JSON encoded %s! ' , static ::class),
40
40
0 ,
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ public static function jsonDecode(string $json): IJsonSerializable
172
172
* Use the constructor of the implementing class.
173
173
*/
174
174
return new static ($ array );
175
- } catch (InvalidArgumentException | JsonException $ exception ) {
175
+ } catch (InvalidArgumentException | JsonException $ exception ) {
176
176
throw new InvalidArgumentException (
177
177
sprintf ('Invalid JSON: Expected JSON encoded %s! ' , static ::class),
178
178
0 ,
You can’t perform that action at this time.
0 commit comments