summaryrefslogtreecommitdiff
path: root/Zend/tests/return_types/019.phpt
blob: 652548c3f93c194908b1cecfff9e5729db8e45db (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
__clone can only declare void return
--FILE--
<?php

class Foo {
    function __clone() : Foo {}
}
?>
--EXPECTF--
Fatal error: Foo::__clone(): Return type must be void when declared in %s on line %d