-
Notifications
You must be signed in to change notification settings - Fork 534
do not skip Generator for MissingTypehintCheck #4209
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
base: 2.1.x
Are you sure you want to change the base?
Conversation
ebcdd50
to
1dc38d3
Compare
Explained the wanted changes here phpstan/phpstan#7498 (comment) |
1dc38d3
to
24bbb81
Compare
I would love to this moving forward. Are you still interested in your PR @Flyingmana ? I think you just need to
|
Yes, might have time for it later today, but latest next weekend |
# Conflicts: # conf/bleedingEdge.neon # conf/config.neon # conf/parametersSchema.neon
e47243b
to
ac69196
Compare
ac69196
to
e262f13
Compare
I think now all is fixed which belongs to this repository, the rest is separate repositories |
This pull request has been marked as ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to see more tests with the other no-longer-skipped types like Generator.
} | ||
if (in_array($classReflection->getName(), self::ITERABLE_GENERIC_CLASS_NAMES, true)) { | ||
if ( | ||
$this->checkGenericIterableClasses !== true && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do !$this->checkGenericIterableClasses
instead
MissingTypehintCheck::MISSING_ITERABLE_VALUE_TYPE_TIP, | ||
], | ||
[ | ||
'Function MissingFunctionParameterTypehint\missingTraversableTypehint() has parameter $traversable with generic interface Traversable but does not specify its types: TKey, TValu', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure this will fail with a typo - TValu vs. TValue
references #7498
only a draft for now, I want to see which test are all failing and for what reasons.