1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Fix phpstan issues

This commit is contained in:
Jordi Boggiano 2020-04-07 14:40:51 +02:00
parent 7b273e2e25
commit 80505e745e
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
10 changed files with 22 additions and 12 deletions

View file

@ -90,6 +90,7 @@ class PoolBuilderTest extends TestCase
}
$pool = $repositorySet->createPool($request, new NullIO());
$result = array();
for ($i = 1, $count = count($pool); $i <= $count; $i++) {
$result[] = $pool->packageById($i);
}
@ -156,6 +157,7 @@ class PoolBuilderTest extends TestCase
);
$section = null;
$data = array();
foreach ($tokens as $i => $token) {
if (null === $section && empty($token)) {
continue; // skip leading blank