<?php class FOO { public function __toString(): string { return "hello world"; } } function bar(string $x): void { echo $x; } $foo = new FOO(); bar($foo);
You have javascript disabled. You will not be able to edit any code.