- πΊπΈUnited States nicxvan
Postponing on π [pp-3] Split up and refactor system_requirements() into OOP hooks Active
system_requirements()
includes this:
$version = str_replace(\Drupal::CORE_COMPATIBILITY . '-', '', $required_file->info['version']);
...
'description' => t('@name requires this module and version. Currently using @required_name version @version', ['@name' => $name, '@required_name' => $required_name, '@version' => $version]),
\Drupal::CORE_COMPATIBILITY is "8.x".
So we str_replace() "8.x-" with an empty string.
However, we're not careful about doing so only at the beginning of the version string.
So, if you somehow are dealing with a version string that contains '8.x-' somewhere you don't expect, all hell breaks loose.
Reasons you might have a version string that will be wrongfully clobbered include:
If we have to strip this off, make sure we only do it at the beginning of the version string.
Postponed
11.0 π₯
extension system
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Postponing on π [pp-3] Split up and refactor system_requirements() into OOP hooks Active