File Manager Lite
Dir:
/home/u540325668/domains/sostabazar.in/public_html/vendor/brick/math/src/Exception
Upload
[..]
DivisionByZeroException.php (736 B)
Edit
Rename
Del
IntegerOverflowException.php (526 B)
Edit
Rename
Del
MathException.php (156 B)
Edit
Rename
Del
NumberFormatException.php (755 B)
Edit
Rename
Del
RoundingNecessaryException.php (459 B)
Edit
Rename
Del
Edit: NumberFormatException.php
<?php declare(strict_types=1); namespace Brick\Math\Exception; /** * Exception thrown when attempting to create a number from a string with an invalid format. */ class NumberFormatException extends MathException { /** * @param string $char The failing character. * * @psalm-pure */ public static function charNotInAlphabet(string $char) : self { $ord = \ord($char); if ($ord < 32 || $ord > 126) { $char = \strtoupper(\dechex($ord)); if ($ord < 10) { $char = '0' . $char; } } else { $char = '"' . $char . '"'; } return new self(sprintf('Char %s is not a valid character in the given alphabet.', $char)); } }
Simpan