Skip to content

Pass a custom variable to flush() #358

Open
@fx1234

Description

@fx1234

We are using the following simple code to flush the Queue:

foreach( $webPush->flush() as $report ){ .... }

The problem is, we need our own variables (the UserID) inside the loop. Is there a way to pass custom variables into the loop? Maybe so that it is available in $report

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