If you have ever wondered why sometimes your cake
dd() output looks like this:
And then other times looks like this:
The reason is that the
CakePHP/Repl plugin uses
symfony/var-dumper and this package has a version of
dd() that loads its own version of dd() so the CakePHP 4 global
dd() function load is skipped
The output is then rendered as per the first image
If you don’t use
bin/cake console then you can safely remove remove
cakephp/repl and have the default output which includes a nice copy-to-clipboard function.
composer remove cakephp/repl cakephp/repl could not be found in require but it is present in require-dev Do you want to remove it from require-dev [yes]? yes ./composer.json has been updated Running composer update cakephp/repl Loading composer repositories with package information Info from https://repo.packagist.org: #StandWithUkraine Updating dependencies Lock file operations: 0 installs, 0 updates, 3 removals - Removing cakephp/repl (0.1.0) - Removing psy/psysh (v0.11.5) - Removing symfony/var-dumper (v6.1.0) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 0 installs, 0 updates, 3 removals - Removing symfony/var-dumper (v6.1.0) - Removing psy/psysh (v0.11.5) - Removing cakephp/repl (0.1.0) Generating autoload files 55 packages you are using are looking for funding. Use the `composer fund` command to find out more!