summaryrefslogtreecommitdiff
path: root/Zend/tests/return_types/034.phpt
blob: 80a57cf1e8cd2546406bfdfdec58aac2e34049db (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