Skip to content

Commit fc18d8a

Browse files
committed
fix get_debug_type for PHP 7.1
1 parent 269d41b commit fc18d8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/functions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ function get_debug_type($value): string
3030
case is_array($value): return 'array';
3131
case is_int($value): return 'int';
3232
case is_float($value): return 'float';
33+
case $value instanceof __PHP_Incomplete_Class: return '__PHP_Incomplete_Class';
3334
case is_object($value):
3435
$class = get_class($value);
3536

0 commit comments

Comments
 (0)