#96219Use get_debug_type() over is_object() and gettype()
Description
In some exception messages, the exact object type is rendered. Currently, this is done via is_object(), get_class() and gettype(). With PHP 8 (and the symfony/polyfill-php80 package), get_debug_type() may be used providing the same functionality.