Skip to content

Uncaught think\exception\ErrorException : attribute should be used to temporarily suppress the notice #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ncard23 opened this issue Mar 20, 2024 · 1 comment

Comments

@ncard23
Copy link

ncard23 commented Mar 20, 2024

hi
after i do the demo,i found some bugs

During inheritance of Iterator: Uncaught think\exception\ErrorException: Return type of MacFJA\RediSearch\Redis\Response\PaginatedResponse::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress

image

my php version is 8.2.16

after i add #[\ReturnTypeWillChange] on the top of current() and other function in

macfja/redisearch/src/Redis/Response/PaginatedResponse.php

everything goes well

is there a plan to do some update ?

@MacFJA

@ncard23
Copy link
Author

ncard23 commented Mar 20, 2024

I figure out the problem.

people who use php 8 should not use

composer require macfja/redisearch

because it is a stable version

after i run follow command

composer require macfja/redisearch:dev-main

everything go well,

it seems the stable version do not support php8 very well.

hope there is a update .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant