Skip to content
This repository was archived by the owner on Jul 31, 2018. It is now read-only.

Commit a3dafd1

Browse files
author
maxiloc
authored
Merge pull request #75 from FelixMalfait/patch-1
Update AlgoliaEloquentTrait.php
2 parents b93988c + 72d45cb commit a3dafd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AlgoliaEloquentTrait.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ public function getAlgoliaRecordDefault($indexName)
241241

242242
$record = null;
243243

244-
if (method_exists($this, static::$methodGetName)) {
245-
$record = $this->{static::$methodGetName}($indexName);
244+
if (method_exists($this, self::$methodGetName)) {
245+
$record = $this->{self::$methodGetName}($indexName);
246246
} else {
247247
$record = $this->toArray();
248248
}

0 commit comments

Comments
 (0)