File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/TextUI/Configuration/Xml/Migration/Migrations Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
22
*/
23
23
final readonly class UpdateSchemaLocation implements Migration
24
24
{
25
- private const NAMESPACE = 'http://www.w3.org/2001/XMLSchema-instance ' ;
25
+ private const NAMESPACE_URI = 'http://www.w3.org/2001/XMLSchema-instance ' ;
26
26
private const LOCAL_NAME_SCHEMA_LOCATION = 'noNamespaceSchemaLocation ' ;
27
27
28
28
public function migrate (DOMDocument $ document ): void
@@ -31,14 +31,14 @@ public function migrate(DOMDocument $document): void
31
31
32
32
assert ($ root instanceof DOMElement);
33
33
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 ;
35
35
36
36
if (str_contains ($ existingSchemaLocation , ':// ' ) === false ) { // If the current schema location is a relative path, don't update it
37
37
return ;
38
38
}
39
39
40
40
$ root ->setAttributeNS (
41
- self ::NAMESPACE ,
41
+ self ::NAMESPACE_URI ,
42
42
'xsi: ' . self ::LOCAL_NAME_SCHEMA_LOCATION ,
43
43
'https://schema.phpunit.de/ ' . Version::series () . '/phpunit.xsd ' ,
44
44
);
You can’t perform that action at this time.
0 commit comments