I use this
https://github.com/raulfraile/LadybugBundle
They have three functions.
ld($var1[, $var2[, ...]]): shortcut for ladybug_dump
ldd($var1[, $var2[, ...]]): shortcut for ladybug_dump_die
ldr($format, $var1[, $var2[, ...]]): shortcut for ladybug_return
The first two work, but for the third, it says an undefined function
I also tried this to reset json, then I also get an error
ld(json_decode($jsonContent, true));
and i get it
UndefinedFunctionException: attempt to call the "bccomp" function from the "Ladybug \ Type" namespace in /var/www/html/site/Symfony/vendor/raulfraile/ladybug/src/Ladybug/Type/FloatType.php line 115
source
share