<?php class Foo { public function __toString(): string { return "foo"; } } function test(string $string) { var_dump($string); } test(new Foo());
You have javascript disabled. You will not be able to edit any code.