ldc-ovoteam/app/Exceptions/Helpers/UnsupportedStructureConversionException.php

13 lines
289 B
PHP

<?php
declare(strict_types=1);
namespace App\Exceptions\Helpers;
class UnsupportedStructureConversionException extends \RuntimeException
{
public static function fromType(mixed $input): self
{
return new self('Cannot handle $input of type ' . \gettype($input));
}
}