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

fix(php): add PHPStan for static code analysis #3655

Merged
merged 4 commits into from
Sep 5, 2024
Merged

fix(php): add PHPStan for static code analysis #3655

merged 4 commits into from
Sep 5, 2024

Conversation

millotp
Copy link
Collaborator

@millotp millotp commented Sep 5, 2024

🧭 What and Why

Closes algolia/algoliasearch-client-php#709

With PHPStan we could have detected this bug much earlier, and maybe other bugs.
For now its mostly types.

I left it disabled because there are too many errors still

🧪 Test

@millotp millotp self-assigned this Sep 5, 2024
@millotp millotp requested a review from a team as a code owner September 5, 2024 07:07
@algolia-bot
Copy link
Collaborator

algolia-bot commented Sep 5, 2024

✔️ Code generated!

Name Link
🪓 Triggered by 2a5f6eace7aa2a9317f28854f5f2c468df534710
🍃 Generated commit db92ec96666b8ea0c7d3faf02a3549b6235cbd7b
🌲 Generated branch generated/fix/phpstan
📊 Benchmark results

Benchmarks performed on the method using a mock server, the results might not reflect the real-world performance.

Language Req/s
javascript 1694
php 1519
csharp 1207
python 1011
java 959
ruby 866
swift 780
go 561

shortcuts
shortcuts previously approved these changes Sep 5, 2024
Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ooooh that's clean

@shortcuts
Copy link
Member

nx is annoying

Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no one would've done it better

Copy link

github-actions bot commented Sep 5, 2024

@millotp millotp merged commit 0505015 into main Sep 5, 2024
28 checks passed
@millotp millotp deleted the fix/phpstan branch September 5, 2024 07:47
algolia-bot added a commit that referenced this pull request Sep 5, 2024
…kip ci]

Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
Co-authored-by: shortcuts <vannicattec@gmail.com>
algolia-bot added a commit to algolia/algoliasearch-client-javascript that referenced this pull request Sep 5, 2024
algolia/api-clients-automation#3655

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
Co-authored-by: shortcuts <vannicattec@gmail.com>
algolia-bot added a commit to algolia/algoliasearch-client-php that referenced this pull request Sep 5, 2024
algolia/api-clients-automation#3655

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
Co-authored-by: shortcuts <vannicattec@gmail.com>
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.

Consider adding static analysis
3 participants