studioespresso / craft-dumper

Bringing larapack/dd to your Craft3 website
MIT License
21 stars 2 forks source link

Undefined variable $vars #13

Closed Jensderond closed 2 years ago

Jensderond commented 2 years ago

Hello, since craft 4 we aren't able to use the basic {{ dump(item) }} anymore because of the error: Undefined variable $vars on line 108 of DumperExtension.php

We are using:

jerome2710 commented 2 years ago

@janhenckens could this be fixed, please? \studioespresso\craftdumper\web\twig\DumperExtension::dump() seems to be missing its arguments. Based on the Craft 3 version I suspect it should be:

public function dump(\craft\web\twig\Environment $env, $context, ...$vars)
janhenckens commented 2 years ago

Fixed in 3.0.1.