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