Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Jan 4, 2026

No description provided.

) {
// processed later
} elseif ($parametersAcceptor instanceof CallableParametersAcceptor) {
if ($parametersAcceptor instanceof CallableParametersAcceptor) {
Copy link
Member

Choose a reason for hiding this comment

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

This is different behaviour because we don't want this if to happen when:


					$nameType->isObject()->yes()
					&& $nameType->isCallable()->yes()
					&& (new ObjectType(Closure::class))->isSuperTypeOf($nameType)->no()

@staabm staabm closed this Jan 4, 2026
@staabm staabm deleted the simple4 branch January 4, 2026 20:59
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