Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add stubs for (some) Symfony iterable types #68

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

Merged
ondrejmirtes merged 1 commit into phpstan:master from VasekPurchart:iterable-stubs
Dec 10, 2019

Conversation

Copy link
Contributor

@VasekPurchart VasekPurchart commented Dec 10, 2019

These are types where PHPStan on lvl 6 was complaining about missing iterable information (in our codebase) - there will be probably more, but I think especially the form ones are quite wide spread.

Original types for reference:

As per discussion with @ondrejmirtes I am not adding any dependencies.

mhujer reacted with thumbs up emoji
namespace Symfony\Component\HttpFoundation;

/**
* @implements \Traversable<string, string|string[]>
Copy link
Member

@ondrejmirtes ondrejmirtes Dec 10, 2019

Choose a reason for hiding this comment

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

This is wrong - it has to @implements \IteratorAggregate

namespace Symfony\Component\HttpFoundation\Session;

/**
* @implements \Traversable<string, mixed>
Copy link
Member

@ondrejmirtes ondrejmirtes Dec 10, 2019

Choose a reason for hiding this comment

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

This is wrong - it has to @implements \IteratorAggregate

@ondrejmirtes ondrejmirtes merged commit 548bd9c into phpstan:master Dec 10, 2019
Copy link
Member

Thanks!

@VasekPurchart VasekPurchart deleted the iterable-stubs branch December 10, 2019 10:43
Copy link
Contributor Author

Thanks, tested dev-master with deleted stubs in our codebase and works as expected :)

Copy link
Collaborator

Thank you!

VasekPurchart reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@ondrejmirtes ondrejmirtes ondrejmirtes approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /