Documentation

ConfigValidator
in package

Validates a composer configuration.

Tags
author

Robert Schönthal seroscho@googlemail.com

author

Jordi Boggiano j.boggiano@seld.be

Table of Contents

$io  : mixed
__construct()  : mixed
validate()  : array<string|int, mixed>
Validates the config, and returns the result.

Properties

Methods

validate()

Validates the config, and returns the result.

public validate(string $file[, int $arrayLoaderValidationFlags = ValidatingArrayLoader::CHECK_ALL ]) : array<string|int, mixed>
Parameters
$file : string

The path to the file

$arrayLoaderValidationFlags : int = ValidatingArrayLoader::CHECK_ALL

Flags for ArrayLoader validation

Return values
array<string|int, mixed>

a triple containing the errors, publishable errors, and warnings

Search results