Skip to content

Commit

Permalink
🐛 Properly reference \Exception when trying to create index.
Browse files Browse the repository at this point in the history
  • Loading branch information
olsgreen committed Apr 14, 2024
1 parent 1d27a42 commit 7342457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ElasticsearchEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public function lazyMap(Builder $builder, $results, $model)
*/
public function createIndex($name, array $options = [])
{
throw new Exception('Database indexes are created automatically upon adding objects.');
throw new \Exception('Database indexes are created automatically upon adding objects.');
}

/**
Expand Down

0 comments on commit 7342457

Please sign in to comment.