Skip to content

Commit

Permalink
Kill 2 more mutants by using PHP named arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
wimleers committed Jun 19, 2023
1 parent 74f9f70 commit e9ba9af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/App/From/JsonResourceParserTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ trait JsonResourceParserTrait {
protected static function parseJsonResource($resource): mixed {
assert(is_resource($resource));
$json = stream_get_contents($resource);
return json_decode($json, TRUE, 512, JSON_OBJECT_AS_ARRAY | JSON_THROW_ON_ERROR);
return json_decode($json, flags: JSON_OBJECT_AS_ARRAY | JSON_THROW_ON_ERROR);
}

}

0 comments on commit e9ba9af

Please sign in to comment.