From 539a52749120c8f721543587864020a7c38ffc81 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Mon, 21 Oct 2024 11:54:40 +1300 Subject: [PATCH] API Update method signature to match parent class (#1502) --- code/Controller/AssetAdmin.php | 2 +- code/Controller/AssetAdminOpen.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/Controller/AssetAdmin.php b/code/Controller/AssetAdmin.php index 5361ebe5a..86ac05769 100644 --- a/code/Controller/AssetAdmin.php +++ b/code/Controller/AssetAdmin.php @@ -206,7 +206,7 @@ public function init() /** * Returns configuration required by the client app */ - public function getClientConfig() + public function getClientConfig(): array { $baseLink = $this->Link(); $validator = $this->getUpload()->getValidator(); diff --git a/code/Controller/AssetAdminOpen.php b/code/Controller/AssetAdminOpen.php index fa6ccbfa1..54522e29f 100644 --- a/code/Controller/AssetAdminOpen.php +++ b/code/Controller/AssetAdminOpen.php @@ -81,7 +81,7 @@ public function init() /** * Returns configuration required by the client app */ - public function getClientConfig() + public function getClientConfig(): array { return array_merge(parent::getClientConfig(), [ 'reactRouter' => true,