镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Deprecated 8.1 #5

Open
Open

Description

@ticariofis

Hello;

I am getting such an error.

can you help me ?

Deprecated: Return type of Minwork\Helper\ArrObj::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in/libraries/minwork/ArrObj.php on line 299

Deprecated: Return type of Minwork\Helper\ArrObj::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 /libraries/minwork/ArrObj.php on line 277

Deprecated: Return type of Minwork\Helper\ArrObj::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /libraries/minwork/ArrObj.php on line 282

Deprecated: Return type of Minwork\Helper\ArrObj::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 /libraries/minwork/ArrObj.php on line 287

Deprecated: Return type of Minwork\Helper\ArrObj::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 //libraries/minwork/ArrObj.php on line 292

Deprecated: Return type of Minwork\Helper\ArrObj::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /libraries/minwork/ArrObj.php on line 304

Activity

  1. linked a pull request that will close this issuefix(build): Deprecation issues in PHP 8.1 #6on Jan 24, 2023
  2. minwork commented on Jan 24, 2023

    @minwork
    Owner

    Hey, I've tried to resolve this issue by adjusting types in ArrObj but it requires more work to bring back tests to live and at the same time make everything backward compatible to at least PHP 7.3.

    If you like you can further work on it in #6.

    I am no longer using PHP so I won't be able to spend more time fixing that, but any contribution in solving this problem is welcome and will be merged as long as it make all tests pass.

  3. ticariofis commented on Feb 2, 2023

    @ticariofis
    Author

    thank u very much..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions