Skip to content

fix: Parameter closure this type annotations in Functions#1628

Merged
nunomaduro merged 2 commits intopestphp:4.xfrom
DevDavido:patch-1
Apr 10, 2026
Merged

fix: Parameter closure this type annotations in Functions#1628
nunomaduro merged 2 commits intopestphp:4.xfrom
DevDavido:patch-1

Conversation

@DevDavido
Copy link
Copy Markdown
Contributor

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.

@nunomaduro nunomaduro merged commit 3a8ee82 into pestphp:4.x Apr 10, 2026
@DevDavido DevDavido deleted the patch-1 branch April 10, 2026 16:23
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