src/Models/BaseDbConfig.php
public static function fromStorageFormat($config, $protect = true)
    {
        $allowUpsert = array_get($config, 'allow_upsert');
        if (!is_bool($allowUpsert)) {
            $allowUpsert = filter_var($allowUpsert, FILTER_VALIDATE_BOOLEAN);
        }
        $config['allow_upsert'] = $allowUpsert;
        $config['max_records'] = filter_var(array_get($config, 'max_records'), FILTER_VALIDATE_INT);

        return parent::fromStorageFormat($config, $protect);
    }
public static function fromStorageFormat($config, $protect = true)
    {
        $allowUpsert = array_get($config, 'allow_upsert');
        if (!is_bool($allowUpsert)) {
            $allowUpsert = filter_var($allowUpsert, FILTER_VALIDATE_BOOLEAN);
        }
        $config['allow_upsert'] = $allowUpsert;
        $config['max_records'] = filter_var(array_get($config, 'max_records'), FILTER_VALIDATE_INT);

        return parent::fromStorageFormat($config, $protect);
    }
{@inheritdoc}