Skip to content

Commit 2adb289

Browse files
committed
Changes suggested in code review
1 parent 0655783 commit 2adb289

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Property/CSSNamespace.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class CSSNamespace implements AtRule
2020
private $url;
2121

2222
/**
23-
* @var string
23+
* @var string|null
2424
*/
2525
private $prefix;
2626

@@ -96,12 +96,12 @@ public function atRuleName(): string
9696
}
9797

9898
/**
99-
* @return array{0: CSSString|URL|string, 1?: CSSString|URL}
99+
* @return array{0: CSSString|URL|non-empty-string, 1?: CSSString|URL}
100100
*/
101101
public function atRuleArgs(): array
102102
{
103103
$result = [$this->url];
104-
if ($this->prefix !== '') {
104+
if (\is_string($this->prefix) && $this->prefix !== '') {
105105
\array_unshift($result, $this->prefix);
106106
}
107107
return $result;

0 commit comments

Comments
 (0)