Deprecated: Return type of FooBar::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/gMZC8 on line 6
Deprecated: Return type of FooBar::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/gMZC8 on line 8
Deprecated: Return type of FooBar::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/gMZC8 on line 7
Deprecated: Return type of FooBar::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/gMZC8 on line 10
Deprecated: Return type of FooBar::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/gMZC8 on line 9
Starting bar()
Constructing new FooBar
Destructing FooBar
Fatal error: Uncaught Exception in /in/gMZC8:6
Stack trace:
#0 /in/gMZC8(15): FooBar->current()
#1 [internal function]: foo()
#2 /in/gMZC8(21): Generator->current()
#3 /in/gMZC8(32): bar()
#4 {main}
thrown in /in/gMZC8 on line 6
Process exited with code 255.
Output for 8.1.0 - 8.1.5
Deprecated: Return type of FooBar::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/gMZC8 on line 6
Deprecated: Return type of FooBar::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/gMZC8 on line 8
Deprecated: Return type of FooBar::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/gMZC8 on line 7
Deprecated: Return type of FooBar::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/gMZC8 on line 10
Deprecated: Return type of FooBar::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/gMZC8 on line 9
Starting bar()
Constructing new FooBar
Destructing FooBar
Fatal error: Uncaught Exception in /in/gMZC8:6
Stack trace:
#0 [internal function]: FooBar->current()
#1 /in/gMZC8(21): Generator->current()
#2 /in/gMZC8(32): bar()
#3 {main}
thrown in /in/gMZC8 on line 6
Process exited with code 255.
Output for 8.0.19 - 8.0.30
Starting bar()
Constructing new FooBar
Destructing FooBar
Fatal error: Uncaught Exception in /in/gMZC8:6
Stack trace:
#0 /in/gMZC8(15): FooBar->current()
#1 [internal function]: foo()
#2 /in/gMZC8(21): Generator->current()
#3 /in/gMZC8(32): bar()
#4 {main}
thrown in /in/gMZC8 on line 6
Process exited with code 255.