PHP 8.1 compatibility

Created on 10 October 2022, over 1 year ago
Updated 19 July 2023, 12 months ago

After updating a project to PHP 8.1, we get the following error:

Deprecated function: Return type of Rokka\Client\Core\UriComponents::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 10 of /app/vendor/rokka/client/src/Core/UriComponents.php).

Could you please update the module to support PHP 8.1?

Thank you!

πŸ’¬ Support request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland dalanz

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

Comments & Activities

Not all content is available!

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

  • πŸ‡§πŸ‡¬Bulgaria pfrenssen Sofia

    Thanks for the contribution! However since we are still compatible with PHP 7.4 we want to retain support for older versions of the Rokka PHP library so that we do not break backwards compatibility. We are planning an upcoming 3.x release which will have a PHP 8.1 minimum requirement.

    In case any projects are affected by this, it can be resolved by running composer update rokka/client on the command line.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024