Sha256: be31a4058382625141ade1fa9531bddf2ecdbd6c5783d55c091bbfe01d06c176

Contents?: true

Size: 667 Bytes

Versions: 634

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

634 entries across 347 versions & 1 rubygems

Version Path
dependabot-composer-0.281.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.280.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.280.0 helpers/v1/src/ExceptionIO.php
dependabot-composer-0.279.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.279.0 helpers/v1/src/ExceptionIO.php
dependabot-composer-0.278.0 helpers/v1/src/ExceptionIO.php
dependabot-composer-0.278.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.277.0 helpers/v1/src/ExceptionIO.php
dependabot-composer-0.277.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.276.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.276.0 helpers/v1/src/ExceptionIO.php
dependabot-composer-0.275.0 helpers/v1/src/ExceptionIO.php
dependabot-composer-0.275.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.274.0 helpers/v1/src/ExceptionIO.php
dependabot-composer-0.274.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.273.0 helpers/v1/src/ExceptionIO.php
dependabot-composer-0.273.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.272.0 helpers/v1/src/ExceptionIO.php
dependabot-composer-0.272.0 helpers/v2/src/ExceptionIO.php
dependabot-composer-0.271.0 helpers/v2/src/ExceptionIO.php