renderMethod example

use Kint\Zval\Value;

class CallablePlugin extends ClosurePlugin
{
    protected static $method_cache = [];

    protected $closure_plugin = null;

    public function renderValue(Value $o): ?string
    {
        if ($o instanceof MethodValue) {
            return $this->renderMethod($o);
        }

        if ($o instanceof ClosureValue) {
            return parent::renderValue($o);
        }

        return null;
    }

    protected function renderMethod(MethodValue $o): string
    {
        
Home | Imprint | This part of the site doesn't use cookies.