xref: /php-src/Zend/tests/return_types/034.phpt (revision c5401854)
1--TEST--
2__isset can only declare a boolean return type
3--FILE--
4<?php
5class Foo {
6    function __isset($name) : \stdClass|bool {}
7}
8?>
9--EXPECTF--
10Fatal error: Foo::__isset(): Return type must be bool when declared in %s on line %d
11