Skip to content

Commit ab1e34b

Browse files
committed
URL -> URI
1 parent 1240f98 commit ab1e34b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/Property/CSSNamespace.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ public function getArrayRepresentation(): array
106106
{
107107
return [
108108
'class' => $this->getShortClassName(),
109-
'url' => $this->url->getArrayRepresentation(),
109+
// We're using `uri` here instead of `url` to better match the spec.
110+
'uri' => $this->url->getArrayRepresentation(),
110111
'prefix' => $this->prefix,
111112
];
112113
}

tests/Unit/Property/CSSNamespaceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function getArrayRepresentationIncludesUrlProvidedAsCssString(): void
6060
'class' => 'CSSString',
6161
'contents' => $uri,
6262
],
63-
$result['url']
63+
$result['uri']
6464
);
6565
}
6666

@@ -82,7 +82,7 @@ public function getArrayRepresentationIncludesUrlProvidedAsUrl(): void
8282
'contents' => $uri,
8383
],
8484
],
85-
$result['url']
85+
$result['uri']
8686
);
8787
}
8888

0 commit comments

Comments
 (0)