diff --git a/README.md b/README.md index 4a80247..7e3e92b 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,9 @@ ## Requirements -* silverstripe/recipe-cms: ^4@dev -* dnadesign/silverstripe-elemental: ^4@dev -* dnadesign/silverstripe-elemental-list: ^1.1@dev +* silverstripe/recipe-cms: ^5@dev +* dnadesign/silverstripe-elemental: ^5@dev +* dnadesign/silverstripe-elemental-list: 2.0.0-beta1 ## Installation diff --git a/composer.json b/composer.json index 1d44e1e..442745e 100644 --- a/composer.json +++ b/composer.json @@ -14,12 +14,12 @@ "type": "silverstripe-vendormodule", "license": "BSD-3-Clause", "require": { - "dnadesign/silverstripe-elemental": "^4.0", - "dnadesign/silverstripe-elemental-list": "^1.1", - "silverstripe/vendor-plugin": "^1.0" + "dnadesign/silverstripe-elemental": "^5.0", + "dnadesign/silverstripe-elemental-list": "2.0.0-beta1", + "silverstripe/vendor-plugin": "^2.0" }, "require-dev": { - "phpunit/phpunit": "^5.7", + "phpunit/phpunit": "^9.5", "squizlabs/php_codesniffer": "*" }, "config": { @@ -35,7 +35,7 @@ "prefer-stable": true, "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "3.0.x-dev" } } } diff --git a/src/Element/ElementTabSet.php b/src/Element/ElementTabSet.php index f3075e6..cb79719 100644 --- a/src/Element/ElementTabSet.php +++ b/src/Element/ElementTabSet.php @@ -58,7 +58,7 @@ public function getCMSFields() /** * @return DBHTMLText */ - public function getSummary() + public function getSummary(): string { if ($this->Elements()) { $ct = $this->Elements()->Elements()->count(); @@ -87,7 +87,7 @@ protected function provideBlockSchema() /** * @return string */ - public function getType() + public function getType(): string { return _t(__CLASS__ . '.BlockType', 'TabSet'); } diff --git a/src/Element/TabElement.php b/src/Element/TabElement.php index bd8301c..720acaf 100644 --- a/src/Element/TabElement.php +++ b/src/Element/TabElement.php @@ -63,7 +63,7 @@ public function getCMSFields() /** * @return DBHTMLText */ - public function getSummary() + public function getSummary(): string { if ($this->Elements()->Elements()) { $ct = $this->Elements()->Elements()->count(); @@ -92,7 +92,7 @@ protected function provideBlockSchema() /** * @return string */ - public function getType() + public function getType(): string { return _t(__CLASS__ . '.BlockType', 'Tab'); }