get_debug_type

Supported Versions: PHP 8
Gets the type name of a variable in a way that is suitable for debugging
<?php get_debug_type(mixed $value): string
<?php         $allowedTypes = is_array($type) ? $type : [$type];



        return $this->each(function ($item, $index) use ($allowedTypes) {

            $itemType = get_debug_type($item);



            foreach ($allowedTypes as $allowedType) {

                if ($itemType === $allowedType || $item instanceof $allowedType) {