1.2.0
What's Changed
Trap options
We've updated the trap()
function. Now, you can:
- Limit the depth of the dumped structure:
trap($veryDeepArray)->depth(3);
- Limit the number of dumps for similar data:
foreach ($veryLargeArray as $item) { // We don't need to dump more than 3 items trap($item)->times(3); }
- Dump only if a condition is true:
trap($animal)->once()->if($var instanceof Animal\Cat);
These changes provide more control over the debugging process.
Full Changelog: 1.1.0...1.2.0