<?php class Foo { public function __toString() { return '42'; } public static function fromInt(int $value) { } } var_dump(Foo::fromInt(new Foo));
You have javascript disabled. You will not be able to edit any code.