Skip to content

Conversation

@canvural
Copy link
Contributor

Re-opening #4545

I think the issue bot changes are valid and is the same case as I described here

@ondrejmirtes
Copy link
Member

I disagree about it. There's nothing wrong about this signature:

	/**
	 * @template T of BackedEnum
	 * @param class-string<T> $class
	 * @param value-of<T> $value
	 */

I feel like UnresolvableTypeHelper should skip LateResolvableTypes.

@canvural
Copy link
Contributor Author

canvural commented Nov 11, 2025

I think that'd just hide the error. Currently value-of with generics and backed enums seems to be broken. And looks like #4548 might fix it 👀

Edit: I copied the snippet you referenced and the fix from #4548 and looks like that fixes it without the need of skipping LateResolvableTypes in UnresolvableTypeHelper

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