blob: 359790b82eab844490f26cb80e854c94ab8f1503 (
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
|