<?php $a = new stdClass(); function foo (string $bar) { } try { foo($a); } catch (\Throwable $t) { echo "Caught " . get_class($t); }
You have javascript disabled. You will not be able to edit any code.