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 Deployer\Component\PharUpdate\Exception; /** *..
Decoded Output download
<?php declare(strict_types=1);
namespace Deployer\Component\PharUpdate\Exception;
/**
* Provides additional functional to the Exception class.
*
* @author Kevin Herrera <[email protected]>
*/
class Exception extends \Exception implements ExceptionInterface
{
/**
* Creates a new exception using a format and values.
*
* @param mixed $value,... The value(s).
*/
public static function create(string $format, $value = null): self
{
if (0 < func_num_args()) {
$format = vsprintf($format, array_slice(func_get_args(), 1));
}
return new static($format);
}
/**
* Creates an exception for the last error message.
*/
public static function lastError(): self
{
$error = error_get_last();
return new static($error['message']);
}
}
?>
Did this file decode correctly?
Original Code
<?php declare(strict_types=1);
namespace Deployer\Component\PharUpdate\Exception;
/**
* Provides additional functional to the Exception class.
*
* @author Kevin Herrera <[email protected]>
*/
class Exception extends \Exception implements ExceptionInterface
{
/**
* Creates a new exception using a format and values.
*
* @param mixed $value,... The value(s).
*/
public static function create(string $format, $value = null): self
{
if (0 < func_num_args()) {
$format = vsprintf($format, array_slice(func_get_args(), 1));
}
return new static($format);
}
/**
* Creates an exception for the last error message.
*/
public static function lastError(): self
{
$error = error_get_last();
return new static($error['message']);
}
}
Function Calls
None |
Stats
MD5 | a78bbd6af12d6e41b01068c611651717 |
Eval Count | 0 |
Decode Time | 111 ms |