xref: /php-src/Zend/tests/typehints/bug76198.phpt (revision f8d79582)
1--TEST--
2"iterable" must not be fully qualified
3--FILE--
4<?php
5
6function foo(): \iterable {
7    return [];
8}
9var_dump(foo());
10
11?>
12--EXPECTF--
13Fatal error: Type declaration 'iterable' must be unqualified in %s on line %d
14