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 Livewire\Features\SupportReactiveProps; use function Livewire\on; use Li..
Decoded Output download
<?php
namespace Livewire\Features\SupportReactiveProps;
use function Livewire\on;
use Livewire\ComponentHook;
class SupportReactiveProps extends ComponentHook
{
public static $pendingChildParams = [];
static function provide()
{
on('flush-state', fn() => static::$pendingChildParams = []);
on('mount.stub', function ($tag, $id, $params, $parent, $key) {
static::$pendingChildParams[$id] = $params;
});
}
static function hasPassedInProps($id) {
return isset(static::$pendingChildParams[$id]);
}
static function getPassedInProp($id, $name) {
$params = static::$pendingChildParams[$id] ?? [];
return $params[$name] ?? null;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Livewire\Features\SupportReactiveProps;
use function Livewire\on;
use Livewire\ComponentHook;
class SupportReactiveProps extends ComponentHook
{
public static $pendingChildParams = [];
static function provide()
{
on('flush-state', fn() => static::$pendingChildParams = []);
on('mount.stub', function ($tag, $id, $params, $parent, $key) {
static::$pendingChildParams[$id] = $params;
});
}
static function hasPassedInProps($id) {
return isset(static::$pendingChildParams[$id]);
}
static function getPassedInProp($id, $name) {
$params = static::$pendingChildParams[$id] ?? [];
return $params[$name] ?? null;
}
}
Function Calls
| None |
Stats
| MD5 | 314c97dd0ad8656c161363801fb1e7d2 |
| Eval Count | 0 |
| Decode Time | 95 ms |