1
0
Fork 0

Skip schema validation when running completion for increased bootstrap performance

pull/10320/head
Jordi Boggiano 2022-05-12 16:05:49 +02:00
parent 3f848cdb9a
commit ce45d15bb5
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 4 additions and 0 deletions

View File

@ -704,6 +704,10 @@ class Factory
*/ */
private static function validateJsonSchema(?IOInterface $io, $fileOrData, int $schema = JsonFile::LAX_SCHEMA, ?string $source = null): void private static function validateJsonSchema(?IOInterface $io, $fileOrData, int $schema = JsonFile::LAX_SCHEMA, ?string $source = null): void
{ {
if (Platform::isInputCompletionProcess()) {
return;
}
try { try {
if ($fileOrData instanceof JsonFile) { if ($fileOrData instanceof JsonFile) {
$fileOrData->validateSchema($schema); $fileOrData->validateSchema($schema);