Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php declare(strict_types=1); namespace Doctrine\DBAL\Types\Exception; use Doctrine\DB..
Decoded Output download
<?php
declare(strict_types=1);
namespace Doctrine\DBAL\Types\Exception;
use Doctrine\DBAL\Types\ConversionException;
use Throwable;
use function get_debug_type;
use function sprintf;
/** @psalm-immutable */
final class SerializationFailed extends ConversionException implements TypesException
{
public static function new(mixed $value, string $format, string $error, ?Throwable $previous = null): self
{
return new self(
sprintf(
'Could not convert PHP type "%s" to "%s". An error was triggered by the serialization: %s',
get_debug_type($value),
$format,
$error,
),
0,
$previous,
);
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
namespace Doctrine\DBAL\Types\Exception;
use Doctrine\DBAL\Types\ConversionException;
use Throwable;
use function get_debug_type;
use function sprintf;
/** @psalm-immutable */
final class SerializationFailed extends ConversionException implements TypesException
{
public static function new(mixed $value, string $format, string $error, ?Throwable $previous = null): self
{
return new self(
sprintf(
'Could not convert PHP type "%s" to "%s". An error was triggered by the serialization: %s',
get_debug_type($value),
$format,
$error,
),
0,
$previous,
);
}
}
Function Calls
None |
Stats
MD5 | 8dc9ceeebbaa2247fd705bccb5beafe8 |
Eval Count | 0 |
Decode Time | 110 ms |