<?php trait FooTrait { } function doFoo(FooTrait $t): void { } class Foo { use FooTrait; } // Uncomment for TypeError //doFoo(new Foo());
You have javascript disabled. You will not be able to edit any code.