<?php gettype(mixed $value): string
<?php throw new \InvalidArgumentException(sprintf( 'Expecting array or object implementing Arrayable. Encountered [%s]', ($type = gettype($data)) === 'object' ? get_class($data) : $type )); }