<?php class Foo { public function bar(int $a): int { return $a * 2; } } $foo = new Foo(); echo $foo->bar("2");
You have javascript disabled. You will not be able to edit any code.