<?php class Foo { public function bar(int $arg) { return $arg; } } $foo = new Foo(); try { var_dump($foo->bar('43 foo')); } catch (Error $e) { echo '!!!' . $e->getMessage() . '!!!'; }
You have javascript disabled. You will not be able to edit any code.