Skip to content

Commit ee8fc38

Browse files
committed
remove array_merge
1 parent 4a4aa5e commit ee8fc38

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Dashboard/Add/Respond.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ class Respond
1616
*/
1717
function __invoke(Response $response, ViewModel $model = null) : ViewModel
1818
{
19-
return $model->with(['args' => array_merge([__CLASS__], $model['args'])]);
19+
return $model->with(['args' => [__CLASS__, ...$model['args']]]);
2020
}
2121
}

src/Dashboard/Add/Save.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ class Save
1313
*/
1414
function __invoke(ViewModel $model) : ViewModel
1515
{
16-
return $model->with(['args' => array_merge([__CLASS__], $model['args'])]);
16+
return $model->with(['args' => [__CLASS__, ...$model['args']]]);
1717
}
1818
}

0 commit comments

Comments
 (0)