Skip to content

Commit 59bcb6c

Browse files
oliverkleeJakeQZ
andauthored
[BUGFIX] Create Size with correct types in expandBackgroundShorthand (#814)
Co-authored-by: JakeQZ <[email protected]>
1 parent 0c96d67 commit 59bcb6c

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

config/phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,3 @@ parameters:
66
count: 2
77
path: ../src/OutputFormat.php
88

9-
-
10-
message: '#^Class Sabberworm\\CSS\\Value\\Size constructor invoked with 5 parameters, 1\-4 required\.$#'
11-
identifier: arguments.count
12-
count: 2
13-
path: ../src/RuleSet/DeclarationBlock.php
14-

src/RuleSet/DeclarationBlock.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,8 @@ public function expandBackgroundShorthand(): void
396396
'background-repeat' => ['repeat'],
397397
'background-attachment' => ['scroll'],
398398
'background-position' => [
399-
new Size(0, '%', null, false, $this->iLineNo),
400-
new Size(0, '%', null, false, $this->iLineNo),
399+
new Size(0, '%', false, $this->iLineNo),
400+
new Size(0, '%', false, $this->iLineNo),
401401
],
402402
];
403403
$mRuleValue = $oRule->getValue();

0 commit comments

Comments
 (0)