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 namespace bar\lib; class AnotherService { public function deprecatedApi(bool $..
Decoded Output download
<?php
namespace bar\lib;
class AnotherService
{
public function deprecatedApi(bool $useContracts = false)
{
$args = [__FUNCTION__, __FUNCTION__];
if ($useContracts) {
trigger_deprecation('bar/lib', '3.0', sprintf('%s is deprecated, use %s_new instead.', ...$args));
} else {
@trigger_error(sprintf('Since bar/lib 3.0: %s is deprecated, use %s_new instead.', ...$args), \E_USER_DEPRECATED);
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace bar\lib;
class AnotherService
{
public function deprecatedApi(bool $useContracts = false)
{
$args = [__FUNCTION__, __FUNCTION__];
if ($useContracts) {
trigger_deprecation('bar/lib', '3.0', sprintf('%s is deprecated, use %s_new instead.', ...$args));
} else {
@trigger_error(sprintf('Since bar/lib 3.0: %s is deprecated, use %s_new instead.', ...$args), \E_USER_DEPRECATED);
}
}
}
Function Calls
None |
Stats
MD5 | 7fdb58d1f360b87ec51b56fb6a6c3ae5 |
Eval Count | 0 |
Decode Time | 249 ms |