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 2222 */
2323final 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 );
You can’t perform that action at this time.
0 commit comments