blob: 5229379df5fe2654b265fb95f07d4f2c2bb00e23 (
plain)
1
2
3
4
5
6
7
8
9
|
--TEST--
Return type of parent is not allowed in function
--FILE--
<?php
function test(): parent {}
?>
--EXPECTF--
Fatal error: Cannot use "parent" when no class scope is active in %s on line %d
|