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