diff --git a/src/Account/Balance.php b/src/Account/Balance.php index 05562028..e8d320b3 100644 --- a/src/Account/Balance.php +++ b/src/Account/Balance.php @@ -82,6 +82,7 @@ public function offsetExists($offset): bool return isset($this->data[$offset]); } + #[\ReturnTypeWillChange] public function offsetGet($offset) { trigger_error( diff --git a/src/Account/Config.php b/src/Account/Config.php index 3f770e91..5a1546f7 100644 --- a/src/Account/Config.php +++ b/src/Account/Config.php @@ -142,6 +142,7 @@ public function offsetExists($offset): bool return isset($this->data[$offset]); } + #[\ReturnTypeWillChange] public function offsetGet($offset) { trigger_error( diff --git a/src/Account/Price.php b/src/Account/Price.php index a8a4227f..f3bc5412 100644 --- a/src/Account/Price.php +++ b/src/Account/Price.php @@ -186,6 +186,7 @@ public function offsetExists($offset): bool return isset($this->data[$offset]); } + #[\ReturnTypeWillChange] public function offsetGet($offset) { trigger_error( diff --git a/src/Client/Credentials/AbstractCredentials.php b/src/Client/Credentials/AbstractCredentials.php index 0d4cdd69..d1747e30 100644 --- a/src/Client/Credentials/AbstractCredentials.php +++ b/src/Client/Credentials/AbstractCredentials.php @@ -28,6 +28,7 @@ public function offsetExists($offset): bool return isset($this->credentials[$offset]); } + #[\ReturnTypeWillChange] public function offsetGet($offset) { return $this->credentials[$offset]; diff --git a/src/Conversations/Conversation.php b/src/Conversations/Conversation.php index e69c1dc4..24aef190 100644 --- a/src/Conversations/Conversation.php +++ b/src/Conversations/Conversation.php @@ -109,6 +109,7 @@ public function get(): Conversation /** * @return array|mixed */ + #[\ReturnTypeWillChange] public function jsonSerialize() { return $this->data; diff --git a/src/Entity/CollectionTrait.php b/src/Entity/CollectionTrait.php index 873b5379..ca36fa3f 100644 --- a/src/Entity/CollectionTrait.php +++ b/src/Entity/CollectionTrait.php @@ -82,6 +82,7 @@ abstract public function hydrateEntity($data, $id); /** * Return the current item, expects concrete collection to handle creating the object. */ + #[\ReturnTypeWillChange] public function current() { return $this->hydrateEntity($this->page['_embedded'][static::getCollectionName()][$this->current], $this->key()); @@ -100,6 +101,7 @@ public function next(): void * * @return string|int */ + #[\ReturnTypeWillChange] public function key() { return @@ -158,7 +160,8 @@ public function rewind(): void /** * Count of total items - */ + */# + #[\ReturnTypeWillChange] public function count(): ?int { if (isset($this->page)) { diff --git a/src/Entity/IterableAPICollection.php b/src/Entity/IterableAPICollection.php index 0c5b674d..53d3de90 100644 --- a/src/Entity/IterableAPICollection.php +++ b/src/Entity/IterableAPICollection.php @@ -185,6 +185,7 @@ public function getResourceRoot(): array * @throws ClientException\Request * @throws ClientException\Server */ + #[\ReturnTypeWillChange] public function current() { if (is_null($this->current)) { @@ -207,6 +208,7 @@ public function next(): void * * @return string */ + #[\ReturnTypeWillChange] public function key() { return diff --git a/src/Entity/IterableServiceShimTrait.php b/src/Entity/IterableServiceShimTrait.php index 30cc2e91..c6be0086 100644 --- a/src/Entity/IterableServiceShimTrait.php +++ b/src/Entity/IterableServiceShimTrait.php @@ -84,6 +84,7 @@ public function count(): int * * @deprecated This will be removed in a future release, and will be part of a search response */ + #[\ReturnTypeWillChange] public function current() { if (is_null($this->collection)) { @@ -114,6 +115,7 @@ public function next(): void * * @deprecated This will be removed in a future release, and will be part of a search response */ + #[\ReturnTypeWillChange] public function key() { if (is_null($this->collection)) { diff --git a/src/Insights/Basic.php b/src/Insights/Basic.php index e6fd2761..6a0256cb 100644 --- a/src/Insights/Basic.php +++ b/src/Insights/Basic.php @@ -70,6 +70,7 @@ public function getCountryPrefix(): int /** * @return array|mixed */ + #[\ReturnTypeWillChange] public function jsonSerialize() { return $this->toArray(); @@ -98,6 +99,7 @@ public function offsetExists($offset): bool return isset($this->data[$offset]); } + #[\ReturnTypeWillChange] public function offsetGet($offset) { trigger_error( diff --git a/src/Message/InboundMessage.php b/src/Message/InboundMessage.php index 863a0d1c..ff548d6e 100644 --- a/src/Message/InboundMessage.php +++ b/src/Message/InboundMessage.php @@ -210,6 +210,7 @@ public function offsetExists($offset): bool * * @throws Exception */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { trigger_error( diff --git a/src/Message/Message.php b/src/Message/Message.php index 9c78906b..8291c45e 100644 --- a/src/Message/Message.php +++ b/src/Message/Message.php @@ -397,6 +397,7 @@ public function offsetExists($offset): bool * @throws ClientException * @throws Exception */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { trigger_error( @@ -456,6 +457,7 @@ protected function getReadOnlyException($offset): RuntimeException /** * @throws Exception */ + #[\ReturnTypeWillChange] public function current() { if (!isset($this->response)) { @@ -471,6 +473,7 @@ public function next(): void $this->current++; } + #[\ReturnTypeWillChange] public function key() { if (!isset($this->response)) { @@ -483,6 +486,7 @@ public function key() /** * @throws Exception */ + #[\ReturnTypeWillChange] public function valid(): ?bool { if (!isset($this->response)) { diff --git a/src/Numbers/Number.php b/src/Numbers/Number.php index 2b4c16fb..8f6b5a8a 100644 --- a/src/Numbers/Number.php +++ b/src/Numbers/Number.php @@ -242,6 +242,7 @@ public function fromArray(array $data): void /** * @return array|mixed */ + #[\ReturnTypeWillChange] public function jsonSerialize() { return $this->toArray(); diff --git a/src/SMS/Collection.php b/src/SMS/Collection.php index 9cb2c6e2..018143a8 100644 --- a/src/SMS/Collection.php +++ b/src/SMS/Collection.php @@ -36,6 +36,7 @@ public function count(): int return (int)$this->data['message-count']; } + #[\ReturnTypeWillChange] public function current(): SentSMS { return new SentSMS($this->data['messages'][$this->current]); @@ -44,6 +45,7 @@ public function current(): SentSMS /** * @return bool|float|int|string|null */ + #[\ReturnTypeWillChange] public function key() { return $this->current; diff --git a/src/User/User.php b/src/User/User.php index 71ce6bbf..97224d65 100644 --- a/src/User/User.php +++ b/src/User/User.php @@ -117,6 +117,7 @@ public function getConversations() /** * @return array|mixed */ + #[\ReturnTypeWillChange] public function jsonSerialize() { return $this->data; diff --git a/src/Voice/NCCO/Action/Connect.php b/src/Voice/NCCO/Action/Connect.php index dd794245..c977f004 100644 --- a/src/Voice/NCCO/Action/Connect.php +++ b/src/Voice/NCCO/Action/Connect.php @@ -77,6 +77,7 @@ public static function factory(EndpointInterface $endpoint, array $data = []): C /** * @return array|mixed */ + #[\ReturnTypeWillChange] public function jsonSerialize() { return $this->toNCCOArray();