Skip to content
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

php 8.2 support #12

Open
ta0s opened this issue Feb 20, 2023 · 2 comments
Open

php 8.2 support #12

ta0s opened this issue Feb 20, 2023 · 2 comments
Assignees

Comments

@ta0s
Copy link

ta0s commented Feb 20, 2023

Hi there, is there a plan to support php 8.2 soon?

`Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/vagrant/sb/main/vendor/serpapi/google-search-results-php/restclient.php on line 266

Deprecated: Return type of RestClient::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/vagrant/sb/main/vendor/serpapi/google-search-results-php/restclient.php on line 66

Deprecated: Return type of RestClient::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/vagrant/sb/main/vendor/serpapi/google-search-results-php/restclient.php on line 74

Deprecated: Return type of RestClient::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/vagrant/sb/main/vendor/serpapi/google-search-results-php/restclient.php on line 70

Deprecated: Return type of RestClient::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/vagrant/sb/main/vendor/serpapi/google-search-results-php/restclient.php on line 78

Deprecated: Return type of RestClient::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/vagrant/sb/main/vendor/serpapi/google-search-results-php/restclient.php on line 61

Deprecated: Return type of RestClient::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/vagrant/sb/main/vendor/serpapi/google-search-results-php/restclient.php on line 84

Deprecated: Return type of RestClient::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/vagrant/sb/main/vendor/serpapi/google-search-results-php/restclient.php on line 90

Deprecated: Return type of RestClient::offsetSet($key, $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 /home/vagrant/sb/main/vendor/serpapi/google-search-results-php/restclient.php on line 99

Deprecated: Return type of RestClient::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/vagrant/sb/main/vendor/serpapi/google-search-results-php/restclient.php on line 103`

@encreinformatique
Copy link
Contributor

Using dev-master helped in my case. I know it is not recommended but it works in the application I am working on.

@schaferyan
Copy link

Another user requested support for newer versions of PHP:

Intercom

@Freaky Freaky self-assigned this Apr 1, 2024
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

4 participants