for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Jasny;
/**
* Traverse over the iterator, not capturing the values.
* This is particularly useful after `iterable_apply()`.
*
* @param iterable $iterable
* @return void
*/
function iterable_walk(iterable $iterable): void
{
if (is_array($iterable)) {
return; // No point walking over an array
}
foreach ($iterable as $value) {