Skip to content

Callables should not be passed configuration #2

@dantleech

Description

@dantleech

e.g.

$pipeline->stage(function () {
    list($config, $data) = yield;
});

$config is only available on classes implementing Stage, so makes no sense to pass to anonymous functions / invokables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions