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