mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
PHPStan Level 5 (#10070)
* Bump PHPStan to level 5 * Update seld/phar-utils to latest * Add phpstan-setup / phpstan scripts
This commit is contained in:
parent
4b8585d767
commit
d3c176ec69
74 changed files with 395 additions and 547 deletions
|
@ -13,6 +13,7 @@
|
|||
namespace Composer\Test\Repository;
|
||||
|
||||
use Composer\Package\Package;
|
||||
use Composer\Package\PackageInterface;
|
||||
use Composer\Repository\PlatformRepository;
|
||||
use Composer\Test\TestCase;
|
||||
use PHPUnit\Framework\Assert;
|
||||
|
@ -1189,7 +1190,7 @@ Linked Version => 1.2.11',
|
|||
}
|
||||
}
|
||||
|
||||
private function assertPackageLinks($context, array $expectedLinks, Package $sourcePackage, array $links)
|
||||
private function assertPackageLinks($context, array $expectedLinks, PackageInterface $sourcePackage, array $links)
|
||||
{
|
||||
self::assertCount(count($expectedLinks), $links, sprintf('%s: expected package count to match', $context));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue