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