Kirby 3.7 & spatie/global-ray

Hello there,

With 3.7 I’m getting a duplicate function fatal error with dump(). (Cannot redelcare dump() previously declared in …spatie/global-ray/dump-phars/dump_8.1.phar/vendor/autoload.php:15 etc.)

I saw there’s a workaround for this:

Helpers can now be deactivated by setting a global constant named KIRBY_HELPER_* , e.g. KIRBY_HELPER_DUMP to false

But how & where do I do that exactly?
Thanks in advance!

Thank you Sonja!

in your index.php file add this:

<?php
const KIRBY_HELPER_DUMP = false;

// … followed by kirbys init code