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.0 Support #256

Merged
merged 8 commits into from
Jan 4, 2021
Merged

PHP 8.0 Support #256

merged 8 commits into from
Jan 4, 2021

Conversation

Nielsvanpach
Copy link
Contributor

@Nielsvanpach Nielsvanpach commented Nov 26, 2020

Q A
Bug fix? no
New feature? yes
BC breaks? no
Related Issue /
Need Doc update no

Describe your change

Provide support on PHP 8.0.
I'll keep this PR in Draft until all dependencies can handle PHP 8.0

Waiting for:

@Nielsvanpach
Copy link
Contributor Author

Nielsvanpach commented Dec 4, 2020

Hi @chloelbn,
Some tests are failing over an API key. Can any of you help me on that one ?

Algolia\AlgoliaSearch\Exceptions\BadRequestException: Invalid Application-ID or API key

@DevinCodes
Copy link
Contributor

Hi @Nielsvanpach, thank you for this PR!

I've tried to rerun the test to see if the error is still there. When I do this, the tests still fail, but I get another error. This leads me to believe your initial errors had something to do with CircleCI permissions, I'll try to make some time to look into that. The new error is this: Error: Call to undefined method Tests\Features\WhereQueriesTest::getAnnotations(). You can check the trace in CircleCI to debug.

getAnnotations() in Testcase is deprecated, these versions use PHPUnit\Util\Test to parse annotations instead of relying on deprecated TestCase::getAnnotations()
@Nielsvanpach
Copy link
Contributor Author

Nielsvanpach commented Dec 10, 2020

The initial error still occurs when I run the actions, @DevinCodes . Could you or someone of the Algolia team look into this? It would really be great to have PHP 8 support on the Algolia libraries, as this is the last blocking dependency for a lot of packages and projects.

Algolia\AlgoliaSearch\Exceptions\BadRequestException: Invalid Application-ID or API key

@DevinCodes
Copy link
Contributor

I'll try to take a look at the errors early this week, @Nielsvanpach ! I'll also discuss with the team to see how we can move PHP8 compatibility forward as soon as possible.

In the meanwhile, thank you for the patience and for your contribution. I'll let you know when I learn more!

@DevinCodes
Copy link
Contributor

Just a quick update: I've been trying to fix the error in the CI that keeps showing up, but I think there's an issue with the API key dealer. I'll have to dig deeper into that to get this fixed. Until that time, I'll manually run the test suite so that we're sure the tests pass once the API client supports PHP8.

Regarding PHP8 support, we're discussing internally how we can best tackle this, I hope we can give you an update soon. Thanks again for your patience.

@Nielsvanpach
Copy link
Contributor Author

@DevinCodes last conflicts seem to be fixed. Can you run the tests again?

@asivaneswaran
Copy link

@DevinCodes @Nielsvanpach
Any updates on when this is going to go through?

@Nielsvanpach
Copy link
Contributor Author

No updates, we have to wait for Algolia on this one. But let them enjoy their holiday break first :-)

@lahivee
Copy link

lahivee commented Jan 4, 2021

Thanks to Spatie helping out Algolia updating their products

@DevinCodes
Copy link
Contributor

Sorry for the delay, I've been vacationing for the last 2 weeks. I'll run the test suite, if all is good I think we're good to go! Thank you so much for your help on this @Nielsvanpach ! 🙇

@DevinCodes DevinCodes marked this pull request as ready for review January 4, 2021 09:22
@DevinCodes DevinCodes merged commit 89e87b2 into algolia:master Jan 4, 2021
@michavie
Copy link

michavie commented Jan 4, 2021

thank you & happy new year!

@lahivee
Copy link

lahivee commented Jan 4, 2021

Thank you @DevinCodes , please also release this please

@DevinCodes
Copy link
Contributor

DevinCodes commented Jan 4, 2021

@lahivee It's released in v1.11.0. It's available on Packagist, and I just drafted a release on GitHub:

@lahivee
Copy link

lahivee commented Jan 4, 2021

@DevinCodes thank you, I appreciate it!

@Nielsvanpach Nielsvanpach deleted the php8 branch January 4, 2021 11:16
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

Successfully merging this pull request may close these issues.

5 participants