for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace EasyHttp\MockBuilder\Iterators;
class NotEmptyArrayValuesIterator extends ArrayIterator
{
public function __construct(array $collection)
$this->filterNotNullParameters($collection);
parent::__construct($collection);
}
private function filterNotNullParameters(array &$collection)
$collection = array_filter(
$collection,
function ($value) {
return !empty($value);
);