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