CoreFiles by mySites.guru
UnwritableStreamException.php30 lines, 675 bytes, from Joomla_5.2.6-Stable-Full_Package.zip
Raw History Compare with 5.2.5
md5
1278fc0eb4a0426232b8a93be952f6bf
sha1
1dd3b6712f08c7db018861dd232835d953e9eec8
sha256
90611d07571bccce9060038d575c8f219ff5ca54bc2a4f57d3f28573e05fba82
<?php

declare(strict_types=1);

namespace Laminas\Diactoros\Exception;

use RuntimeException;

class UnwritableStreamException extends RuntimeException implements ExceptionInterface
{
    public static function dueToConfiguration(): self
    {
        return new self('Stream is not writable');
    }

    public static function dueToMissingResource(): self
    {
        return new self('No resource available; cannot write');
    }

    public static function dueToPhpError(): self
    {
        return new self('Error writing to stream');
    }

    public static function forCallbackStream(): self
    {
        return new self('Callback streams cannot write');
    }
}

The same content is in 158 releases, Joomla 5.0.0-alpha1 to 6.3.0-alpha1. See them all, or every version of this file.