The expression return $pretty ? self::p...($exported) : $exported could return the type mixed which includes types incompatible with the type-hinted return string. Consider adding an additional type-check to rule them out.
Loading history...
60
$exported;
61
}
62
63
/**
64
* @param mixed $expression
65
* @param bool $pretty
66
* @return string
67
*/
68
public static function dump($expression, bool $pretty = true): string