Skip to content
This repository was archived by the owner on Nov 4, 2021. It is now read-only.

Commit 7cb0d4c

Browse files
authored
Merge pull request #211 from mwenghi/patch-1
trait doesn't boot in extended classes
2 parents 6f19513 + 19226b6 commit 7cb0d4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Searchable.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ trait Searchable
2727
*
2828
* @var bool
2929
*/
30-
private static $isSearchableTraitBooted = false;
30+
protected static $isSearchableTraitBooted = false;
3131

3232
public static function bootSearchable()
3333
{
34-
if (self::$isSearchableTraitBooted) {
34+
if (static::$isSearchableTraitBooted) {
3535
return;
3636
}
3737

3838
self::sourceBootSearchable();
3939

40-
self::$isSearchableTraitBooted = true;
40+
static::$isSearchableTraitBooted = true;
4141
}
4242

4343
/**

0 commit comments

Comments
 (0)