diff --git a/src/Core/Extension.php b/src/Core/Extension.php index aca0ea377..253ea0d6a 100644 --- a/src/Core/Extension.php +++ b/src/Core/Extension.php @@ -44,6 +44,10 @@ abstract class Extension */ private $ownerStack = []; + public function __construct() + { + } + /** * Called when this extension is added to a particular class * diff --git a/src/ORM/Search/FulltextSearchable.php b/src/ORM/Search/FulltextSearchable.php index 72b17a27c..d5b918288 100644 --- a/src/ORM/Search/FulltextSearchable.php +++ b/src/ORM/Search/FulltextSearchable.php @@ -88,6 +88,7 @@ class FulltextSearchable extends DataExtension */ public function __construct($searchFields = array()) { + parent::__construct(); if (is_array($searchFields)) { $this->searchFields = $searchFields; } else { diff --git a/tests/php/Core/ObjectTest/ExtendTest2.php b/tests/php/Core/ObjectTest/ExtendTest2.php index 2e0aad98a..78326d76a 100644 --- a/tests/php/Core/ObjectTest/ExtendTest2.php +++ b/tests/php/Core/ObjectTest/ExtendTest2.php @@ -11,6 +11,7 @@ class ExtendTest2 extends Extension implements TestOnly public function __construct() { + parent::__construct(); $this->constructorArgs = func_get_args(); } diff --git a/tests/php/Core/ObjectTest/ExtendTest3.php b/tests/php/Core/ObjectTest/ExtendTest3.php index 318e01d6e..d4d0c66e4 100644 --- a/tests/php/Core/ObjectTest/ExtendTest3.php +++ b/tests/php/Core/ObjectTest/ExtendTest3.php @@ -11,6 +11,7 @@ class ExtendTest3 extends Extension implements TestOnly public function __construct() { + parent::__construct(); $this->constructorArgs = func_get_args(); }