- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
- Fatal error: Class bar cannot extend from interface foo in /in/IZ4eP on line 5
Process exited with code 255.
<?php
interface foo {}
class bar extends foo {}
function test() : foo { return new bar; }
test();