From c174390fcb1f06766da99d66785bc1e30a867ec1 Mon Sep 17 00:00:00 2001 From: Carson Tam Date: Thu, 11 Apr 2024 13:28:50 -0700 Subject: [PATCH] Added workaround to the PHP 8.1: Return types in PHP built-in class methods and deprecation notices, probably until PHP 9.0. --- local/kaltura/API/KalturaClientBase.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/local/kaltura/API/KalturaClientBase.php b/local/kaltura/API/KalturaClientBase.php index 83083762..3f8fd892 100644 --- a/local/kaltura/API/KalturaClientBase.php +++ b/local/kaltura/API/KalturaClientBase.php @@ -48,20 +48,24 @@ function __get($name) return new MultiRequestSubResult($this->value . ':' . $name); } + #[\ReturnTypeWillChange] public function offsetExists($offset) { return true; } + #[\ReturnTypeWillChange] public function offsetGet($offset) { return new MultiRequestSubResult($this->value . ':' . $offset); } + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { } + #[\ReturnTypeWillChange] public function offsetUnset($offset) { }