Skip to content

Commit 9db9e2f

Browse files
committed
Add RuleContainer interface for RuleSet and DeclarationBlock
1 parent dbb2627 commit 9db9e2f

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

config/phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ parameters:
5454
count: 1
5555
path: ../src/RuleSet/DeclarationBlock.php
5656

57-
-
58-
message: '#^Parameters should have "string\|null" types as the only types passed to this method$#'
59-
identifier: typePerfect.narrowPublicClassMethodParamType
60-
count: 2
61-
path: ../src/RuleSet/DeclarationBlock.php
62-
6357
-
6458
message: '#^Loose comparison via "\!\=" is not allowed\.$#'
6559
identifier: notEqual.notAllowed

src/RuleSet/DeclarationBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*
3131
* Note that `CSSListItem` extends both `Commentable` and `Renderable`, so those interfaces must also be implemented.
3232
*/
33-
class DeclarationBlock implements CSSElement, CSSListItem, Positionable
33+
class DeclarationBlock implements CSSElement, CSSListItem, Positionable, RuleContainer
3434
{
3535
use CommentContainer;
3636
use Position;

0 commit comments

Comments
 (0)