diff --git a/CHANGELOG.md b/CHANGELOG.md index c14d3760..4c17a928 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,6 +47,7 @@ Please also have a look at our ### Removed +- Drop `atRuleArgs()` from the `AtRule` interface (#1141) - Remove `OutputFormat::get()` and `::set()` (#1108, #1110) - Drop special support for vendor prefixes (#1083) - Remove the IE hack in `Rule` (#995) diff --git a/config/phpstan-baseline.neon b/config/phpstan-baseline.neon index 84be213c..435a4cd3 100644 --- a/config/phpstan-baseline.neon +++ b/config/phpstan-baseline.neon @@ -108,12 +108,6 @@ parameters: count: 1 path: ../src/Property/CSSNamespace.php - - - message: '#^Return type \(array\\) of method Sabberworm\\CSS\\Property\\CSSNamespace\:\:atRuleArgs\(\) should be compatible with return type \(string\|null\) of method Sabberworm\\CSS\\Property\\AtRule\:\:atRuleArgs\(\)$#' - identifier: method.childReturnType - count: 1 - path: ../src/Property/CSSNamespace.php - - message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:comments\(\)\.$#' identifier: method.notFound @@ -138,12 +132,6 @@ parameters: count: 1 path: ../src/Property/Import.php - - - message: '#^Return type \(array\\) of method Sabberworm\\CSS\\Property\\Import\:\:atRuleArgs\(\) should be compatible with return type \(string\|null\) of method Sabberworm\\CSS\\Property\\AtRule\:\:atRuleArgs\(\)$#' - identifier: method.childReturnType - count: 1 - path: ../src/Property/Import.php - - message: '#^Only booleans are allowed in an if condition, Sabberworm\\CSS\\Value\\RuleValueList\|string\|null given\.$#' identifier: if.condNotBoolean diff --git a/src/Property/AtRule.php b/src/Property/AtRule.php index f17b4227..a2785213 100644 --- a/src/Property/AtRule.php +++ b/src/Property/AtRule.php @@ -23,9 +23,4 @@ interface AtRule extends Renderable, Commentable * @return non-empty-string */ public function atRuleName(): string; - - /** - * @return string|null - */ - public function atRuleArgs(); }