Skip to content

Conversation

chesio
Copy link
Contributor

@chesio chesio commented Aug 18, 2023

The $callable can be a class name or an object as well, so allow object and string types in the type hint.

I've noticed this issue while analyzing a plugin of mine with PHPStan on level 7.

The $callable can be a class name or an object as well, so allow `object` and `string` types in the type hint.
@chesio chesio requested a review from a team as a code owner August 18, 2023 11:58
@danielbachhuber danielbachhuber added this to the 2.9.0 milestone Aug 18, 2023
Copy link
Member

@danielbachhuber danielbachhuber left a comment

Choose a reason for hiding this comment

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

Thanks @chesio !

@danielbachhuber danielbachhuber merged commit 89eb991 into wp-cli:main Aug 18, 2023
@chesio chesio deleted the chesio-patch-1 branch August 18, 2023 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants