1
0
Fork 0

Enable phpstan bleedingEdge

pull/10757/head
Jordi Boggiano 2022-04-29 11:10:21 +02:00
parent 25012170b2
commit d5a8d2be22
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
3 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
includes: includes:
- ../vendor/phpstan/phpstan/conf/bleedingEdge.neon
- ../vendor/phpstan/phpstan-phpunit/extension.neon - ../vendor/phpstan/phpstan-phpunit/extension.neon
- ../vendor/phpstan/phpstan-deprecation-rules/rules.neon - ../vendor/phpstan/phpstan-deprecation-rules/rules.neon
- ../vendor/phpstan/phpstan-strict-rules/rules.neon - ../vendor/phpstan/phpstan-strict-rules/rules.neon

View File

@ -42,7 +42,7 @@ class RuleSet implements \IteratorAggregate, \Countable
/** @var array<self::TYPE_*, Rule[]> */ /** @var array<self::TYPE_*, Rule[]> */
protected $rules; protected $rules;
/** @var int */ /** @var 0|positive-int */
protected $nextRuleId = 0; protected $nextRuleId = 0;
/** @var array<int|string, Rule|Rule[]> */ /** @var array<int|string, Rule|Rule[]> */

View File

@ -321,7 +321,7 @@ class ArrayRepository implements RepositoryInterface
/** /**
* Returns the number of packages in this repository * Returns the number of packages in this repository
* *
* @return int Number of packages * @return 0|positive-int Number of packages
*/ */
public function count(): int public function count(): int
{ {