- Output for 7.2.0 - 7.2.26, 7.3.0 - 7.3.13, 7.4.0 - 7.4.1
- Fatal error: Abstract function T::test() cannot contain body in /in/TkWRS on line 4
Process exited with code 255.
<?php
trait T {
abstract public function test(int $x) {}
}
class C {
use T;
public function test(string $x) {}
}