ConfigValidator
in package
Validates a composer configuration.
Tags
Table of Contents
- $io : mixed
- __construct() : mixed
- validate() : array<string|int, mixed>
- Validates the config, and returns the result.
Properties
$io
private
mixed
$io
Methods
__construct()
public
__construct(IOInterface $io) : mixed
Parameters
- $io : IOInterface
Return values
mixed —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