sebastian/recursion-context
sebastian/recursion-context is a small PHP utility for tracking recursive traversals and avoiding infinite loops when walking nested structures. It provides the RecursionContext class used by sebastian/comparator and PHPUnit to handle recursion safely.
You can add this library as a local, per-project dependency to your project using Composer:
composer require sebastian/recursion-context
If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:
composer require --dev sebastian/recursion-context
How can I help you explore Laravel packages today?