matteosister / GitElephant

An abstraction layer for git written in PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP 8.1 compatibility fix for deprecated return

olstjos opened this issue · comments

Hello, I just upgraded to php 8.1 and I'm getting a deprecated notice. I'm using the git_status module for Drupal 9

this module requires cypresslab/gitelephant.

I didn't see any available updates or existing open issues fixing this.


Error message

    Deprecated function: Return type of GitElephant\Objects\Log::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 33 of /www/vendor/cypresslab/gitelephant/src/GitElephant/Objects/Log.php).

see pull request to follow