PHP 8.2.30
Preview: InvalidArgumentException.php Size: 835 B
/proc/thread-self/root/home/byroehnu/easetack.com/vendor/moneyphp/money/src/Exception/InvalidArgumentException.php

<?php

declare(strict_types=1);

namespace Money\Exception;

use InvalidArgumentException as CoreInvalidArgumentException;
use Money\Exception;

/**
 * @internal
 */
class InvalidArgumentException extends CoreInvalidArgumentException implements Exception
{
    /** @phpstan-pure */
    public static function divisionByZero(): DivisionByZeroException
    {
        return new DivisionByZeroException('Cannot compute division with a zero divisor');
    }

    /** @phpstan-pure */
    public static function moduloByZero(): ModuloByZeroException
    {
        return new ModuloByZeroException('Cannot compute modulo with a zero divisor');
    }

    /** @phpstan-pure */
    public static function currencyMismatch(): CurrencyMismatchException
    {
        return new CurrencyMismatchException('Currencies must be identical');
    }
}

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
136 B lrw-rw-rw- 2025-04-03 08:26:36
Edit Download
134 B lrw-rw-rw- 2025-04-03 08:26:36
Edit Download
259 B lrw-rw-rw- 2025-04-03 08:26:36
Edit Download
835 B lrw-rw-rw- 2025-04-03 08:26:36
Edit Download
132 B lrw-rw-rw- 2025-04-03 08:26:36
Edit Download
251 B lrw-rw-rw- 2025-04-03 08:26:36
Edit Download
262 B lrw-rw-rw- 2025-04-03 08:26:36
Edit Download
786 B lrw-rw-rw- 2025-04-03 08:26:36
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).