From 895bd3da93cf74dc5745b77e5282c843a98244e1 Mon Sep 17 00:00:00 2001 From: Zauberfisch Date: Thu, 12 Mar 2020 01:04:07 +0100 Subject: [PATCH] Use SS_Object instead of Object --- composer.json | 2 +- src/AbstractDataObject.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index ac789b3..fea94b7 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "require": { "php": "^7", "ext-json": "*", - "silverstripe/framework": "^3.6.4", + "silverstripe/framework": "^3.7", "zauberfisch/silverstripe-namespace-templates": "^1.0" } } diff --git a/src/AbstractDataObject.php b/src/AbstractDataObject.php index 3f0716a..c91b077 100644 --- a/src/AbstractDataObject.php +++ b/src/AbstractDataObject.php @@ -57,7 +57,7 @@ public function unserialize($serialized) { $this->fieldsData = isset($data['fieldsData']) ? $data['fieldsData'] : []; $this->listsData = isset($data['listsData']) ? $data['listsData'] : []; foreach (\ClassInfo::ancestry(get_called_class()) as $class) { - if (in_array($class, \Config::inst()->get(\Object::class, 'unextendable_classes'))) { + if (in_array($class, \Config::inst()->get(\SS_Object::class, 'unextendable_classes'))) { continue; } $extensions = \Config::inst()->get($class, 'extensions',