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 684ac4a commit bc664a4Copy full SHA for bc664a4
extension-matrix/src/semver/app.php
@@ -16,7 +16,8 @@
16
} else if($file === 'package.xml') {
17
$package_xml = $argv[2];
18
$xml = simplexml_load_file($package_xml);
19
- $xml->registerXPathNamespace("p", "http://pear.php.net/dtd/package-2.0");
+ $namespace = $xml->getNamespaces()[""] ?? "http://pear.php.net/dtd/package-2.0";
20
+ $xml->registerXPathNamespace("p", $namespace);
21
$min = $xml->xpath("//p:php/p:min")[0] ?? null;
22
$max = $xml->xpath("//p:php/p:max")[0] ?? null;
23
$constraint = '';
extension-matrix/src/semver/semver.phar
21 Bytes
0 commit comments