public function addErrors(SchemaUpdateType $schemaUpdateType, array $errors, array $statements = [])
    {
        $collectedErrors = [];
        foreach ($errors as $id => $error) {
            $collectedErrors[] = [
                'message' => $error,
                'statement' => $statements[$id],
            ];
        }
        $this->errors[(string)$schemaUpdateType] = array_merge((array)$this->errors[(string)$schemaUpdateType], $collectedErrors);
    }
public function addErrors(SchemaUpdateType $schemaUpdateType, array $errors, array $statements = [])
    {
        $collectedErrors = [];
        foreach ($errors as $id => $error) {
            $collectedErrors[] = [
                'message' => $error,
                'statement' => $statements[$id],
            ];
        }
        $this->errors[(string)$schemaUpdateType] = array_merge((array)$this->errors[(string)$schemaUpdateType], $collectedErrors);
    }
public function addErrors ( SchemaUpdateType $ schemaUpdateType , array $ errors , array $ statements = [ ] ) { $ collectedErrors = [ ] ; foreach ( $ errors as $ id => $ error ) { $ collectedErrors [ ] = [ 'message' => $ error , 'statement' => $ statements [ $ id ] , ] ; } $ this -> errors [ ( string ) $ schemaUpdateType ] = array_merge ( ( array ) $ this -> errors [ ( string ) $ schemaUpdateType ] , $ collectedErrors ) ; }
Adds to the list of errors occurred for a schema update type

@param SchemaUpdateType $schemaUpdateType Schema update type
@param array $errors List of error messages
@param array $statements SQL Statements that were executed
Adds to the list of errors occurred for a schema update type