Skip to content

Commit aaea827

Browse files
Improve name (and work around theseer/Autoload#115)
1 parent 8c7ccf6 commit aaea827

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/TextUI/Configuration/Xml/Migration/Migrations/UpdateSchemaLocation.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323
final readonly class UpdateSchemaLocation implements Migration
2424
{
25-
private const NAMESPACE = 'http://www.w3.org/2001/XMLSchema-instance';
25+
private const NAMESPACE_URI = 'http://www.w3.org/2001/XMLSchema-instance';
2626
private const LOCAL_NAME_SCHEMA_LOCATION = 'noNamespaceSchemaLocation';
2727

2828
public function migrate(DOMDocument $document): void
@@ -31,14 +31,14 @@ public function migrate(DOMDocument $document): void
3131

3232
assert($root instanceof DOMElement);
3333

34-
$existingSchemaLocation = $root->getAttributeNodeNS(self::NAMESPACE, self::LOCAL_NAME_SCHEMA_LOCATION)->value;
34+
$existingSchemaLocation = $root->getAttributeNodeNS(self::NAMESPACE_URI, self::LOCAL_NAME_SCHEMA_LOCATION)->value;
3535

3636
if (str_contains($existingSchemaLocation, '://') === false) { // If the current schema location is a relative path, don't update it
3737
return;
3838
}
3939

4040
$root->setAttributeNS(
41-
self::NAMESPACE,
41+
self::NAMESPACE_URI,
4242
'xsi:' . self::LOCAL_NAME_SCHEMA_LOCATION,
4343
'https://schema.phpunit.de/' . Version::series() . '/phpunit.xsd',
4444
);

0 commit comments

Comments
 (0)