%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/cpanel/ea-wappspector/vendor/rector/rector/src/Util/
Upload File :
Create Path :
Current File : //opt/cpanel/ea-wappspector/vendor/rector/rector/src/Util/ArrayChecker.php

<?php

declare (strict_types=1);
namespace Rector\Util;

final class ArrayChecker
{
    /**
     * @param mixed[] $elements
     * @param callable(mixed $element): bool $callable
     */
    public function doesExist(array $elements, callable $callable) : bool
    {
        foreach ($elements as $element) {
            $isFound = $callable($element);
            if ($isFound) {
                return \true;
            }
        }
        return \false;
    }
}

Zerion Mini Shell 1.0