When using Ray I noticed that Ignition stopped receiving dump and dd statements. This is because both packages replace the VarDumper::$handler with their own implementation and only one $handler can be registered at a time.
This PR makes sure the DumpRecorder only registers its MultiDumpHandler once. It also makes sure that the original VarDumper::$handler gets added to the MultiDumpHandler.
When using Ray I noticed that Ignition stopped receiving
dump
anddd
statements. This is because both packages replace theVarDumper::$handler
with their own implementation and only one$handler
can be registered at a time.This PR makes sure the
DumpRecorder
only registers itsMultiDumpHandler
once. It also makes sure that the originalVarDumper::$handler
gets added to theMultiDumpHandler
.