diff --git a/composer.json b/composer.json index b7eb05f..d82549b 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ ], "require": { - "silverstripe/framework": "^4.0" + "silverstripe/framework": "^4 || ^5" }, "autoload": { "psr-4": { diff --git a/src/SingleObjectAdmin.php b/src/SingleObjectAdmin.php index 0e54f73..248debe 100644 --- a/src/SingleObjectAdmin.php +++ b/src/SingleObjectAdmin.php @@ -172,7 +172,7 @@ public function EditForm($request = null) * * @return DBHTMLText|string */ - public function getSilverStripeNavigator() + public function getSilverStripeNavigator(?DataObject $record = null) { return $this->renderWith(SingleObjectAdmin::class . '_SilverStripeNavigator'); } @@ -180,7 +180,7 @@ public function getSilverStripeNavigator() /** * @return PjaxResponseNegotiator */ - public function getResponseNegotiator() + public function getResponseNegotiator(): PjaxResponseNegotiator { $neg = parent::getResponseNegotiator(); $controller = $this;