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
|
@ -16,6 +16,7 @@ use Composer\DependencyResolver\GenericRule;
|
|||
use Composer\DependencyResolver\Rule;
|
||||
use Composer\DependencyResolver\RuleSet;
|
||||
use Composer\DependencyResolver\Pool;
|
||||
use Composer\Semver\Constraint\MatchNoneConstraint;
|
||||
use Composer\Test\TestCase;
|
||||
|
||||
class RuleSetTest extends TestCase
|
||||
|
@ -144,7 +145,7 @@ class RuleSetTest extends TestCase
|
|||
|
||||
$ruleSet = new RuleSet;
|
||||
$literal = $p->getId();
|
||||
$rule = new GenericRule(array($literal), Rule::RULE_ROOT_REQUIRE, array('packageName' => 'foo/bar', 'constraint' => null));
|
||||
$rule = new GenericRule(array($literal), Rule::RULE_ROOT_REQUIRE, array('packageName' => 'foo/bar', 'constraint' => new MatchNoneConstraint));
|
||||
|
||||
$ruleSet->add($rule, RuleSet::TYPE_REQUEST);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue