diff --git a/config/phpstan-baseline.neon b/config/phpstan-baseline.neon index 43b9c063..a7a2f211 100644 --- a/config/phpstan-baseline.neon +++ b/config/phpstan-baseline.neon @@ -6,9 +6,3 @@ parameters: count: 2 path: ../src/OutputFormat.php - - - message: '#^Class Sabberworm\\CSS\\Value\\Size constructor invoked with 5 parameters, 1\-4 required\.$#' - identifier: arguments.count - count: 2 - path: ../src/RuleSet/DeclarationBlock.php - diff --git a/src/RuleSet/DeclarationBlock.php b/src/RuleSet/DeclarationBlock.php index f701c1ec..4a26e6d5 100644 --- a/src/RuleSet/DeclarationBlock.php +++ b/src/RuleSet/DeclarationBlock.php @@ -396,8 +396,8 @@ public function expandBackgroundShorthand(): void 'background-repeat' => ['repeat'], 'background-attachment' => ['scroll'], 'background-position' => [ - new Size(0, '%', null, false, $this->iLineNo), - new Size(0, '%', null, false, $this->iLineNo), + new Size(0, '%', false, $this->iLineNo), + new Size(0, '%', false, $this->iLineNo), ], ]; $mRuleValue = $oRule->getValue();