Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Locker.php

function Locker::getPreferStable

File

vendor/composer/composer/src/Composer/Package/Locker.php, line 278

Class

Locker
Reads/writes project lockfile (composer.lock).

Namespace

Composer\Package

Code

public function getPreferStable() : ?bool {
    $lockData = $this->getLockData();
    // return null if not set to allow caller logic to choose the
    // right behavior since old lock files have no prefer-stable
    return $lockData['prefer-stable'] ?? null;
}
RSS feed
Powered by Drupal