blob: f08c527512993c9c889753a42da841145c81c6da (
plain)
1
2
3
4
5
6
7
8
|
--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
|