Skip to content

Commit

Permalink
use plus operator
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkingmedia committed Jun 28, 2016
1 parent 3053f13 commit ec32a6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ORM/Table.php
Expand Up @@ -1236,10 +1236,10 @@ public function get($primaryKey, $options = [])
*/
public function findOrCreate($search, callable $callback = null, $options = [])
{
$options = array_merge([
$options = $options + [
'atomic' => true,
'defaults' => true
], $options);
];

if ($options['atomic']) {
return $this->connection()->transactional(function () use ($search, $callback, $options) {
Expand Down

0 comments on commit ec32a6b

Please sign in to comment.