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