diff --git a/config/phpstan-baseline.neon b/config/phpstan-baseline.neon index f84a4a00..9be2ebd7 100644 --- a/config/phpstan-baseline.neon +++ b/config/phpstan-baseline.neon @@ -54,12 +54,6 @@ parameters: count: 1 path: ../src/RuleSet/DeclarationBlock.php - - - message: '#^Parameters should have "string" types as the only types passed to this method$#' - identifier: typePerfect.narrowPublicClassMethodParamType - count: 1 - path: ../src/RuleSet/RuleSet.php - - message: '#^Loose comparison via "\!\=" is not allowed\.$#' identifier: notEqual.notAllowed diff --git a/tests/ParserTest.php b/tests/ParserTest.php index 87c9b23e..ffda6b8c 100644 --- a/tests/ParserTest.php +++ b/tests/ParserTest.php @@ -348,7 +348,7 @@ public function manipulation(): void $document->render() ); foreach ($document->getAllRuleSets() as $ruleSet) { - $ruleSet->removeRule('font-'); + $ruleSet->removeMatchingRules('font-'); } self::assertSame( '#header {margin: 10px 2em 1cm 2%;color: red !important;background-color: green;' @@ -357,7 +357,7 @@ public function manipulation(): void $document->render() ); foreach ($document->getAllRuleSets() as $ruleSet) { - $ruleSet->removeRule('background-'); + $ruleSet->removeMatchingRules('background-'); } self::assertSame( '#header {margin: 10px 2em 1cm 2%;color: red !important;frequency: 30Hz;transform: rotate(1turn);}