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 use Illuminate\Contracts\Cache\Repository; use function PHPStan\Testing\assertType..
Decoded Output download
<?php
use Illuminate\Contracts\Cache\Repository;
use function PHPStan\TestingssertType;
/** @var Repository $cache */
$cache = resolve(Repository::class);
assertType('mixed', $cache->get('key'));
assertType('mixed', $cache->get('cache', 27));
assertType('mixed', $cache->get('cache', function (): int {
return 26;
}));
assertType('mixed', $cache->pull('key'));
assertType('int', $cache->pull('cache', 28));
assertType('int', $cache->pull('cache', function (): int {
return 30;
}));
assertType('int', $cache->sear('cache', function (): int {
return 33;
}));
assertType('int', $cache->remember('cache', now(), function (): int {
return 36;
}));
assertType('int', $cache->rememberForever('cache', function (): int {
return 36;
}));
?>
Did this file decode correctly?
Original Code
<?php
use Illuminate\Contracts\Cache\Repository;
use function PHPStan\Testing\assertType;
/** @var Repository $cache */
$cache = resolve(Repository::class);
assertType('mixed', $cache->get('key'));
assertType('mixed', $cache->get('cache', 27));
assertType('mixed', $cache->get('cache', function (): int {
return 26;
}));
assertType('mixed', $cache->pull('key'));
assertType('int', $cache->pull('cache', 28));
assertType('int', $cache->pull('cache', function (): int {
return 30;
}));
assertType('int', $cache->sear('cache', function (): int {
return 33;
}));
assertType('int', $cache->remember('cache', now(), function (): int {
return 36;
}));
assertType('int', $cache->rememberForever('cache', function (): int {
return 36;
}));
Function Calls
None |
Stats
MD5 | 8c4143c5477bee26460cb218a029440d |
Eval Count | 0 |
Decode Time | 83 ms |