Skip to content

Fix Envelope::all() return type#309

Merged
ondrejmirtes merged 1 commit intophpstan:1.2.xfrom
enumag:fix-envelope-all
Nov 4, 2022
Merged

Fix Envelope::all() return type#309
ondrejmirtes merged 1 commit intophpstan:1.2.xfrom
enumag:fix-envelope-all

Conversation

@enumag
Copy link
Copy Markdown
Contributor

@enumag enumag commented Nov 4, 2022

I noticed that my fix from #308 wasn't working so I looked deeper into it. Trying a better fix now.

@enumag enumag force-pushed the fix-envelope-all branch 3 times, most recently from 2488bbc to 65d133d Compare November 4, 2022 11:00
@enumag
Copy link
Copy Markdown
Contributor Author

enumag commented Nov 4, 2022

Hmm... except that AccessoryArrayListType doesn't exist in PHPStan 1.8. How can I solve that? list<> was available even before phpstan 1.9.

Also some tests are now failing on this:

Error: Calling PHPStan\Type\Accessory\AccessoryArrayListType::intersectWith() is not covered by backward compatibility promise. The method might change in a minor PHPStan version.

@ondrejmirtes
Copy link
Copy Markdown
Member

Require PHPStan 1.9

@enumag
Copy link
Copy Markdown
Contributor Author

enumag commented Nov 4, 2022

Okay... I'll go and assume that the method should be covered by compatibility promise since you recommended it's usage... see phpstan/phpstan-src#1967.

Copy link
Copy Markdown
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

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

You can require PHPStan ^1.9.1 now.

@enumag enumag requested a review from ondrejmirtes November 4, 2022 11:57
@ondrejmirtes ondrejmirtes merged commit d6ea162 into phpstan:1.2.x Nov 4, 2022
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you.

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.

2 participants