Skip to content

Commit 027b316

Browse files
author
Cyril Mizzi
committed
fixes mutation NodeEloquentGenerator syntax mistake
1 parent d939075 commit 027b316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator/Mutation/NodeEloquentGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function getArguments(Model $model) {
5555
}
5656

5757
else if (!empty($guarded)) {
58-
$columns = array_diff(key($columns, $guarded));
58+
$columns = array_diff_key($columns, $guarded);
5959
}
6060

6161
if (!empty($hidden)) {

0 commit comments

Comments
 (0)