From 734a5fb4694bca8f00dab3fa66687929c72f6132 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Wed, 22 May 2013 08:08:11 +1200 Subject: [PATCH] BUG Fixed declaration of Versioned::updateCMSFields to be compatible with DataExtension::updateCMSFields --- model/Versioned.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/Versioned.php b/model/Versioned.php index 8c1dcabc6..183ccdb1e 100644 --- a/model/Versioned.php +++ b/model/Versioned.php @@ -1316,7 +1316,7 @@ class Versioned extends DataExtension { /** * @param FieldList */ - public function updateCMSFields(&$fields) { + public function updateCMSFields(FieldList $fields) { // remove the version field from the CMS as this should be left // entirely up to the extension (not the cms user). $fields->removeByName('Version');