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