dumpVar example

$output = $this->renderer->preRender();

        if ([] === $vars) {
            $output .= $this->renderer->renderNothing();
        }

        foreach ($vars as $key => $arg) {
            if (!$base[$key] instanceof Value) {
                throw new InvalidArgumentException('Kint::dumpAll requires all elements of the second argument to be Value instances');
            }
            $output .= $this->dumpVar($arg$base[$key]);
        }

        $output .= $this->renderer->postRender();

        return $output;
    }

    /** * Dumps and renders a var. * * @param mixed &$var Data to dump * @param Value $base Base object */
Home | Imprint | This part of the site doesn't use cookies.