mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Fix phpstan issues
This commit is contained in:
parent
7b273e2e25
commit
80505e745e
10 changed files with 22 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue