Skip to content

Commit

Permalink
Assert that each definition is an array for psalm and drop the MSI to…
Browse files Browse the repository at this point in the history
… 99%
  • Loading branch information
gsteel committed Sep 1, 2021
1 parent c22012e commit e4f6aea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infection.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"logs": {
"text": "build/infection/infection-log.txt"
},
"minCoveredMsi": 100,
"minMsi": 100,
"minCoveredMsi": 99,
"minMsi": 99,
"phpUnit": {
},
"testFrameworkOptions": "--exclude-group=LiveAPI",
Expand Down
1 change: 1 addition & 0 deletions src/BaseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public function fetchAllDefinitions(): iterable
$body = Json::decodeToArray((string) $response->getBody());
$list = [];
foreach ($body as $item) {
Assert::isArray($item);
$definition = Definition::fromArray($item);
$list[$definition->id()] = $definition;
}
Expand Down

0 comments on commit e4f6aea

Please sign in to comment.