Skip to content

Commit

Permalink
remove array_merge
Browse files Browse the repository at this point in the history
  • Loading branch information
devosc committed Feb 22, 2020
1 parent 4a4aa5e commit ee8fc38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Dashboard/Add/Respond.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ class Respond
*/
function __invoke(Response $response, ViewModel $model = null) : ViewModel
{
return $model->with(['args' => array_merge([__CLASS__], $model['args'])]);
return $model->with(['args' => [__CLASS__, ...$model['args']]]);
}
}
2 changes: 1 addition & 1 deletion src/Dashboard/Add/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ class Save
*/
function __invoke(ViewModel $model) : ViewModel
{
return $model->with(['args' => array_merge([__CLASS__], $model['args'])]);
return $model->with(['args' => [__CLASS__, ...$model['args']]]);
}
}

0 comments on commit ee8fc38

Please sign in to comment.