source: src/router/php7/Zend/tests/bug72373.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 4 months ago

update php

File size: 246 bytes
Line 
1--TEST--
2Bug #72373: TypeError after Generator function w/declared return type finishes
3--FILE--
4<?php
5
6function foo() : Generator {
7    yield 1;
8    yield 2;
9    yield 3;
10}
11
12foreach (foo() as $bar) {
13    echo $bar . "\n";
14}
15
16?>
17--EXPECT--
181
192
203
Note: See TracBrowser for help on using the repository browser.