Issue #3383616 by poker10, Spokje, catch: "core_version_requirement key must be present" on core modules on Windows

merge-requests/4680/merge
xjm 2023-09-29 19:52:42 -05:00
parent 987548947c
commit 5ce054a443
No known key found for this signature in database
GPG Key ID: 206B0B8743BDF4C2
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class InfoParserDynamic implements InfoParserInterface {
throw new InfoParserException('Missing required keys (' . implode(', ', $missing_keys) . ') in ' . $filename);
}
if (!isset($parsed_info['core_version_requirement'])) {
if (str_starts_with($filename, 'core/') || str_starts_with($filename, $this->root . '/core/')) {
if (str_starts_with($filename, 'core/') || str_starts_with($filename, $this->root . DIRECTORY_SEPARATOR . 'core/')) {
// Core extensions do not need to specify core compatibility: they are
// by definition compatible so a sensible default is used. Core
// modules are allowed to provide these for testing purposes.