From 9082155cd16c07b1ded0f8c574ad2c67af0c0a1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20CAPARROS?= Date: Mon, 27 Nov 2017 11:29:56 +0100 Subject: [PATCH] Fixed type-hint, workaround for https://bugs.php.net/bug.php?id=75079 --- src/Searchable.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Searchable.php b/src/Searchable.php index 82ab12d..4161e76 100644 --- a/src/Searchable.php +++ b/src/Searchable.php @@ -46,13 +46,13 @@ trait Searchable */ public static function bootSearchable() { - static::saved(function (self $model) { + static::saved(function ($model) { if ($model->shouldSyncDocument()) { $model->document()->save(); } }); - static::deleted(function (self $model) { + static::deleted(function ($model) { if ($model->shouldSyncDocument()) { $model->document()->delete(); }