1--TEST-- 2Destructors cannot declare a return type 3--FILE-- 4<?php 5 6class Foo { 7 function __destruct() : Foo {} 8} 9--EXPECTF-- 10Fatal error: Destructor %s::%s() cannot declare a return type in %s on line %s 11