Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/Infusionsoft/Api/Rest/RestModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ public function toJson($options = 0)
*
* @return array
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return $this->toArray();
Expand Down Expand Up @@ -982,6 +983,7 @@ public function __set($key, $value)
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->$offset);
Expand All @@ -994,6 +996,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->$offset;
Expand All @@ -1007,6 +1010,7 @@ public function offsetGet($offset)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
$this->$offset = $value;
Expand All @@ -1019,6 +1023,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->$offset);
Expand Down
8 changes: 7 additions & 1 deletion src/Infusionsoft/InfusionsoftCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public function toArray()
*
* @return array
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return $this->toArray();
Expand All @@ -133,6 +134,7 @@ public function toJson($options = 0)
*
* @return int
*/
#[\ReturnTypeWillChange]
public function count()
{
return count($this->items);
Expand All @@ -144,6 +146,7 @@ public function count()
* @param mixed $key
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($key)
{
return array_key_exists($key, $this->items);
Expand All @@ -155,6 +158,7 @@ public function offsetExists($key)
* @param mixed $key
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($key)
{
return $this->items[$key];
Expand All @@ -167,6 +171,7 @@ public function offsetGet($key)
* @param mixed $value
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($key, $value)
{
if (is_null($key)) {
Expand All @@ -182,6 +187,7 @@ public function offsetSet($key, $value)
* @param string $key
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($key)
{
unset($this->items[$key]);
Expand Down Expand Up @@ -216,4 +222,4 @@ protected function getArrayableItems($items)
return (array) $items;
}

}
}