diff --git a/src/Extension/ExtendableTrait.php b/src/Extension/ExtendableTrait.php index 5177b12f..20b4b52d 100644 --- a/src/Extension/ExtendableTrait.php +++ b/src/Extension/ExtendableTrait.php @@ -9,6 +9,7 @@ use Winter\Storm\Support\Serialization; use Illuminate\Support\Facades\App; use ReflectionException; +use October\Rain\Extension\ExtendableTrait as OctoberExtendableTrait; /** * This extension trait is used when access to the underlying base class @@ -566,7 +567,10 @@ protected function extensionGetParentClass(object $instance = null) return false; } - while (!in_array(ExtendableTrait::class, $parent->getTraitNames())) { + while ( + !in_array(ExtendableTrait::class, $parent->getTraitNames()) + && !in_array(OctoberExtendableTrait::class, $parent->getTraitNames()) + ) { $parent = $parent->getParentClass(); if ($parent === false) { break;