Skip to content

Change dump pair to using associative array #1

@tonda13

Description

@tonda13

Example

// before
DumpfPair::dump('label_for_var_x', $x, 'label_for_var_y', $y);

// after
DumpfPair::dump([
    'label_for_var_x' => $x,
    'label_for_var_y' => $y,
]);

Consider support also multiple arrays as arguments, e.g.:

DumpPair::dump(
    ['label_for_var_x' => $x],
    ['label_for_var_y' => $y],
);

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions