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

Breadcrumb

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

function DiagnoseCommand::checkComposerLockSchema

Return value

string|true

1 call to DiagnoseCommand::checkComposerLockSchema()
DiagnoseCommand::execute in vendor/composer/composer/src/Composer/Command/DiagnoseCommand.php
Executes the current command.

File

vendor/composer/composer/src/Composer/Command/DiagnoseCommand.php, line 281

Class

DiagnoseCommand
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Command

Code

private function checkComposerLockSchema(Locker $locker) {
    $json = $locker->getJsonFile();
    try {
        $json->validateSchema(JsonFile::LOCK_SCHEMA);
    } catch (JsonValidationException $e) {
        $output = '';
        foreach ($e->getErrors() as $error) {
            $output .= '<error>' . $error . '</error>' . PHP_EOL;
        }
        return trim($output);
    }
    return true;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal