Verified Commit 4650172f authored by Dave Long's avatar Dave Long
Browse files

Issue #3487150 by alexpott, oily, ptmkenny: \Drupal::VERSION on 11.x not correct

parent 04478f36
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ class Drupal {
  /**
   * The current system version.
   */
  const VERSION = '11.0-dev';
  const VERSION = '11.2-dev';

  /**
   * Core API compatibility.
+5 −0
Original line number Diff line number Diff line
@@ -424,6 +424,11 @@ protected function makeVendorPackage($repository_path): void {
   */
  protected function getCoreStability() {
    $version = \Drupal::VERSION;
    // If the current version is x.y-dev then this is the equivalent of the main
    // branch and should be treated as a dev release.
    if (preg_match('/^(\d)+\.(\d)+-dev$/', $version)) {
      return 'dev';
    }
    $stability = VersionParser::parseStability($version);
    if ($stability === 'dev') {
      // Strip off "-dev";