<?php trait T { function foo(int $a): int { return $a; } } class A { use T; function foo(): string { } } $a = new A();
You have javascript disabled. You will not be able to edit any code.