Skip to content

Conversation

@PrinsFrank
Copy link
Contributor

No description provided.

@PrinsFrank PrinsFrank changed the title Add curl getinfo dynamic return type extension Add curl_getinfo dynamic return type extension Mar 14, 2022
@staabm
Copy link
Contributor

staabm commented Mar 14, 2022

When you use https://github.com/phpstan/phpstan-src/blob/1.5.x/tests/PHPStan/Analyser/NodeScopeResolverTest.php for testing instead of the Legacy test-class, you can add separate test files per php-version, so you don‘t need to limit this feature on constants available on all versions

@PrinsFrank
Copy link
Contributor Author

@staabm Thanks for the fast review and all the help so far! I will finalize the tests tomorrow!

Copy link
Contributor

@staabm staabm left a comment

Choose a reason for hiding this comment

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

great job so far.

for a few days there is also a 1.4.x branch.. I think this PR should target that branch instead of the longer termin 1.5.x

@PrinsFrank PrinsFrank changed the base branch from 1.5.x to 1.4.x March 15, 2022 17:49
@PrinsFrank
Copy link
Contributor Author

PrinsFrank commented Mar 15, 2022

@staabm Thanks! I rebased on 1.4.x, moved the tests to the non-legacy test cases and processed the rest of the feedback. Can you give me some pointers to fix the remaining 2 checks?

@staabm
Copy link
Contributor

staabm commented Mar 15, 2022

From my perspective this looks good, thank you.

we need to double check the errors in https://github.com/phpstan/phpstan-src/runs/5559798589?check_suite_focus=true

e.g. on https://github.com/composer/composer/blob/3ae111140facdba8ae82adcd1085e4adfc7d715c/src/Composer/Util/Http/CurlDownloader.php

otherwise - lets wait for some feedback from ondrey

@PrinsFrank PrinsFrank requested a review from ondrejmirtes March 21, 2022 20:21
@ondrejmirtes
Copy link
Member

Thank you! I merged it in 1.5.x: ef59f08

@PrinsFrank PrinsFrank deleted the add-curl-getinfo-dynamic-return-type-extension branch March 22, 2022 09:34
@ondrejmirtes
Copy link
Member

FYI I checked PHP docs and concluded that the keys are not optional: 9cde413

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.

3 participants