<?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) {