Skip to content

request for clarification re: return types for generators #13

@SignpostMarv

Description

@SignpostMarv

What's the appropriate docblock here?

function Foo() : Generator {
    yield from [
        ['foo', 123, ['foo' => ['bar', 'baz', null]]],
        ['bar', 456, ['foo' => ['bar', 'baz', null]]],
        ['baz', 789, ['foo' => ['bar', 'baz', null]]],
    ];
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions