<?php interface I { public function a(int $a): string; } Class C implements I { public function a(int|string $a): string { return "foo"; } } function test(I $subject) { print $subject->a('beep'); } test(new C());
You have javascript disabled. You will not be able to edit any code.