getkirby-v2 / toolkit

This is the deprecated toolkit for Kirby v2.
http://getkirby.com
81 stars 50 forks source link

Prevent conflict with Composer `dump` method #280

Closed maxfenton closed 4 years ago

maxfenton commented 6 years ago

When Valet has been installed, running kirby update causes the following error:

PHP Fatal error: Cannot redeclare dump() (previously declared in /Users/xx/.composer/vendor/symfony/var-dumper/Resources/functions/dump.php:18) in /Users/xx/website/kirby/vendor/getkirby/toolkit/helpers.php on line 114

This patch prevents dump from being redeclared.

Forum discussion: https://forum.getkirby.com/t/php-fatal-error-cannot-redeclare-dump/9774/2