Sha256: be31a4058382625141ade1fa9531bddf2ecdbd6c5783d55c091bbfe01d06c176

Contents?: true

Size: 667 Bytes

Versions: 632

Compression:

Stored size: 667 Bytes

Contents

<?php

declare(strict_types=1);

namespace Dependabot\Composer;

use Composer\IO\NullIO;

final class ExceptionIO extends NullIO
{
    private bool $raise_next_error = false;

    public function writeError($messages, $newline = true, $verbosity = self::NORMAL): void
    {
        if (is_array($messages)) {
            return;
        }
        if ($this->raise_next_error) {
            throw new \RuntimeException('Your requirements could not be resolved to an installable set of packages.' . $messages);
        }
        if (strpos($messages, 'Your requirements could not be resolved') !== false) {
            $this->raise_next_error = true;
        }
    }
}

Version data entries

632 entries across 345 versions & 1 rubygems

Version Path
dependabot-composer-0.293.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.292.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.291.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.290.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.289.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.288.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.287.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.286.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.286.0 helpers/v1/src/ExceptionIO.php
dependabot-composer-0.285.0 helpers/v1/src/ExceptionIO.php
dependabot-composer-0.285.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.284.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.284.0 helpers/v1/src/ExceptionIO.php
dependabot-composer-0.283.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.283.0 helpers/v1/src/ExceptionIO.php
dependabot-composer-0.282.0 helpers/v1/src/ExceptionIO.php
dependabot-composer-0.282.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.281.0 helpers/v1/src/ExceptionIO.php
dependabot-composer-0.281.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.280.0 helpers/v2/src/ExceptionIO.php