Psalm
Get started
Documentation
Paid support
Plugins
Blog
GitHub
<?php /** @psalm-yield int */ class a {} /** * @return Generator<mixed, mixed, mixed, int> */ function a(): Generator { return random_int(0, 1) ? 123 : yield new a; } /** * @return Generator<mixed, mixed, mixed, int> */ function b(): Generator { return yield new a; }
Snippet created on October 11 2022 at 08:48 UTC
Settings
Get link