From 1c0b8253b3107db11799c6b7d49d8826b528fe26 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 27 Jun 2019 20:29:02 +0200 Subject: [PATCH] #2843 --- src/app/Magic/Fields/Field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/Magic/Fields/Field.php b/src/app/Magic/Fields/Field.php index 40dfbc4..4c9ca0e 100644 --- a/src/app/Magic/Fields/Field.php +++ b/src/app/Magic/Fields/Field.php @@ -84,7 +84,7 @@ class Field implements \ArrayAccess protected static function _getClass($type) { $type = Str::studly($type); - if (class_exists($type)) { + if (class_exists($type) && is_subclass_of($type, self::class)) { return $type; } if (class_exists(__NAMESPACE__ . '\\' . $type)) { -- 2.39.5