Skip to content

Conversation

@ruudk
Copy link
Contributor

@ruudk ruudk commented Jan 27, 2026

See phpstan/phpstan#14014 (reply in thread)

Let's see what the tests say.

@ruudk ruudk marked this pull request as ready for review January 28, 2026 06:30
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@ruudk ruudk force-pushed the make-sure-function-scope-is-set-for-callable-in-attribute branch 2 times, most recently from 14fa284 to 16a3cc7 Compare January 30, 2026 18:08
@ruudk
Copy link
Contributor Author

ruudk commented Jan 30, 2026

@ondrejmirtes I rebased with main, then tried to see if I could get a test that uses StaticMethodParameterClosureTypeExtension.

But I feel like this is not the right extension point.

@ondrejmirtes ondrejmirtes force-pushed the make-sure-function-scope-is-set-for-callable-in-attribute branch from 16a3cc7 to eaf4ec7 Compare February 10, 2026 09:14
// Then we would want to find out the 1st parameter of __invoke
// It would be SomeCommand.
// Then we would want to return that the callable signature is `static function (SomeCommand): string`
// But I'm not sure if this is the correct extension point at all...
Copy link
Member

Choose a reason for hiding this comment

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

Why do you feel that? Did you try to implement the logic here along with the change to NodeScopeResolver to see if my suggestion worked?

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.

3 participants