blob: fa2d331f55e6e5fcd845060dcda2f2c45fe93d39 (
plain)
1
2
3
4
5
6
7
8
9
10
|
--TEST--
__unset can only declare void return
--FILE--
<?php
class Foo {
function __unset($name) : bool {}
}
?>
--EXPECTF--
Fatal error: Foo::__unset(): Return type must be void when declared in %s on line %d
|