PHP 8.1 Deprecated function: Return type of SevenShores\Hubspot\Http\Response::offsetExists($offset)

Created on 25 November 2022, almost 2 years ago
Updated 6 June 2024, 6 months ago

Problem/Motivation

After updating php to version 8.1, there are problems with the required library hubspot/hubspot-php

Deprecated function: Return type of SevenShores\Hubspot\Http\Response::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 9 of /var/www/vendor/hubspot/hubspot-php/src/Http/Response.php).

include('/var/www/vendor/hubspot/hubspot-php/src/Http/Response.php')

Deprecated function: Return type of SevenShores\Hubspot\Http\Response::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 9 of /var/www/vendor/hubspot/hubspot-php/src/Http/Response.php) 

Proposed resolution

Update hubspoth/hubspot-php to newest version

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇮🇪Ireland stella

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024