2 Commits
Author SHA1 Message Date
noccy 27983a057b Fix notice in DatasetManager 2022-10-31 15:36:01 +01:00
noccy 8323051ca7 Updated composer.json, tested and works with PHP 7.4 2022-10-31 13:06:50 +01:00
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -15,6 +15,11 @@
} }
], ],
"bin": [ "bin/dataset-info" ], "bin": [ "bin/dataset-info" ],
"require": {
"php": "^7.4|^8.0",
"ext-simplexml": "*",
"ext-json": "*"
},
"require-dev": { "require-dev": {
"phpunit/phpunit": "^9.5", "phpunit/phpunit": "^9.5",
"phpstan/phpstan": "^1.8" "phpstan/phpstan": "^1.8"
+1 -1
View File
@@ -84,7 +84,7 @@ class DatasetManager
if (file_exists($fn)) { if (file_exists($fn)) {
$versions = include $fn; $versions = include $fn;
foreach ($versions['versions'] as $name=>$version) { foreach ($versions['versions'] as $name=>$version) {
self::$packageVersions[$name] = $version['version']; self::$packageVersions[$name] = array_key_exists('version',$version) ? $version['version'] : null;
} }
} }