Skip to content

Commit

Permalink
[fix] 修复 laravel < 5.7版本不支持 add方法的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
telanflow committed May 27, 2020
1 parent 572f4c3 commit 57cf7a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DTO/FieldDTOCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static function makeFromArray(array $fields): self
} else {
$v = FieldDTO::makeFromObject($field);
}
$collection->add($v);
$collection->push($v);
}
return $collection;
}
Expand Down

0 comments on commit 57cf7a8

Please sign in to comment.