Skip to content

fix: Parameter closure this type annotations in Functions#1628

Open
DevDavido wants to merge 1 commit intopestphp:4.xfrom
DevDavido:patch-1
Open

fix: Parameter closure this type annotations in Functions#1628
DevDavido wants to merge 1 commit intopestphp:4.xfrom
DevDavido:patch-1

Conversation

@DevDavido
Copy link

What:

  • Bug Fix
  • New Feature

Description:

Cursor IDE shows undefined method errors for every method call on $this objects (e.g. $this->get(...)).
Changing param-closure-this PHPDoc tag from type TestCase to TestCall, which includes @mixin for HigherOrderCallables|TestCase|Testable, fixes this.

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.

1 participant