Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks if a value exists in an array
<?php in_array(mixed $needle, array $haystack, bool $strict = false): bool
<?php         $providedSolutions = $this->solutionProviders

            ->filter(function (string $solutionClass) {

                if (! in_array(HasSolutionsForThrowable::class, class_implements($solutionClass) ?: [])) {

                    return false;

                }
<?php             return null;

        }



        if (! in_array(Solution::class, class_implements($solutionClass) ?: [])) {

            return null;

        }