Skip to content

Conversation

Flyingmana
Copy link
Contributor

@Flyingmana Flyingmana commented Aug 5, 2025

references #7498

only a draft for now, I want to see which test are all failing and for what reasons.

@Flyingmana Flyingmana force-pushed the patch-generator_type_missing branch 2 times, most recently from ebcdd50 to 1dc38d3 Compare August 11, 2025 19:14
@ondrejmirtes
Copy link
Member

Explained the wanted changes here phpstan/phpstan#7498 (comment)

@VincentLanglet
Copy link
Contributor

I would love to this moving forward. Are you still interested in your PR @Flyingmana ?

I think you just need to

  • Rebase/Fix conflicts
  • Describe the iterable type in some stubs/tests

@Flyingmana
Copy link
Contributor Author

Yes, might have time for it later today, but latest next weekend

@Flyingmana Flyingmana force-pushed the patch-generator_type_missing branch 3 times, most recently from e47243b to ac69196 Compare September 14, 2025 21:38
@Flyingmana Flyingmana force-pushed the patch-generator_type_missing branch from ac69196 to e262f13 Compare September 14, 2025 22:13
@Flyingmana
Copy link
Contributor Author

I think now all is fixed which belongs to this repository, the rest is separate repositories

@Flyingmana Flyingmana marked this pull request as ready for review September 14, 2025 23:29
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

Copy link
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.

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 &&
Copy link
Member

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',
Copy link
Member

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

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.

4 participants