We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0655783 commit 2adb289Copy full SHA for 2adb289
src/Property/CSSNamespace.php
@@ -20,7 +20,7 @@ class CSSNamespace implements AtRule
20
private $url;
21
22
/**
23
- * @var string
+ * @var string|null
24
*/
25
private $prefix;
26
@@ -96,12 +96,12 @@ public function atRuleName(): string
96
}
97
98
99
- * @return array{0: CSSString|URL|string, 1?: CSSString|URL}
+ * @return array{0: CSSString|URL|non-empty-string, 1?: CSSString|URL}
100
101
public function atRuleArgs(): array
102
{
103
$result = [$this->url];
104
- if ($this->prefix !== '') {
+ if (\is_string($this->prefix) && $this->prefix !== '') {
105
\array_unshift($result, $this->prefix);
106
107
return $result;
0 commit comments