Movatterモバイル変換


[0]ホーム

URL:


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

[PropertyInfo] Handle collection in PhpStan same as PhpDoc#57617

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@mtarld
Copy link
Contributor

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
IssuesFix#52699 (comment)
LicenseMIT

On#52699, acomment suggested to support classes that inherit from collection classes (such as doctrine collections for example).
This has been done for PHPDoc, but not in PHPStan.

This PR adds this missing behavior to PHPStan (and adds the missing PHPDoc related test).

misaert reacted with thumbs up emoji
Copy link
Member

@xabbuhxabbuh left a comment

Choose a reason for hiding this comment

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

I am not completely convinced that allowing subclasses in#52699 was a good decision as it rather looks like introducing a new feature in a patch release. But now that we did it for thePhpDocTypeHelper updating thePhpStanTypeHelper in the same way looks reasonable to me.

chalasr, mtarld, and soyuka reacted with thumbs up emoji
Copy link
Member

@chalasrchalasr left a comment

Choose a reason for hiding this comment

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

once CS fixed

@mtarldmtarldforce-pushed thefix/property-info-phpstan-collection branch from80a81f6 tof098683CompareJuly 5, 2024 07:59
@xabbuh
Copy link
Member

Thank you@mtarld.

@xabbuhxabbuh merged commite67bfc1 intosymfony:5.4Jul 6, 2024
@mtarldmtarld deleted the fix/property-info-phpstan-collection branchJuly 6, 2024 08:37
xabbuh added a commit to xabbuh/symfony that referenced this pull requestJul 9, 2024
This change ensures that the tests that have been added insymfony#57617 arealso applied when the types from the TypeInfo component are used insteadof the Type class that is built into the PropertyInfo component.
fabpot added a commit that referenced this pull requestJul 10, 2024
This PR was merged into the 7.1 branch.Discussion----------[PropertyInfo]  add tests for TypeInfo types| Q             | A| ------------- | ---| Branch?       | 7.1| Bug fix?      | no| New feature?  | no| Deprecations? | no| Issues        || License       | MITThis change ensures that the tests that have been added in#57617 are also applied when the types from the TypeInfo component are used instead of the Type class that is built into the PropertyInfo component.Commits-------93d3209 add tests for TypeInfo types
This was referencedJul 26, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh approved these changes

@chalasrchalasrchalasr approved these changes

@dunglasdunglasAwaiting requested review from dunglasdunglas is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

4 participants

@mtarld@xabbuh@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp