diff --git a/config/phpstan-baseline.neon b/config/phpstan-baseline.neon index e17e1b3f..6c802937 100644 --- a/config/phpstan-baseline.neon +++ b/config/phpstan-baseline.neon @@ -318,12 +318,6 @@ parameters: count: 1 path: ../src/RuleSet/DeclarationBlock.php - - - message: '#^Argument of an invalid type Sabberworm\\CSS\\Rule\\Rule supplied for foreach, only iterables are supported\.$#' - identifier: foreach.nonIterable - count: 2 - path: ../src/RuleSet/RuleSet.php - - message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:removeLastSemicolon\(\)\.$#' identifier: method.notFound @@ -384,12 +378,6 @@ parameters: count: 1 path: ../src/RuleSet/RuleSet.php - - - message: '#^Use explicit methods over array access on object$#' - identifier: typePerfect.noArrayAccessOnObject - count: 1 - path: ../src/RuleSet/RuleSet.php - - message: '#^Parameters should have "string" types as the only types passed to this method$#' identifier: typePerfect.narrowPublicClassMethodParamType diff --git a/src/RuleSet/RuleSet.php b/src/RuleSet/RuleSet.php index 42f7878e..8db048f1 100644 --- a/src/RuleSet/RuleSet.php +++ b/src/RuleSet/RuleSet.php @@ -25,7 +25,10 @@ abstract class RuleSet implements Renderable, Commentable { /** - * @var array + * the rules in this rule set, using the property name as the key, + * with potentially multiple rules per property name. + * + * @var array, Rule>> */ private $rules = [];