PHP TypeLang Help

@psalm-scope-this

The @psalm-scope-this tag binds the type of $this inside a Closure, letting Psalm type-check the closure body as if it were a method of the given class.

"@psalm-scope-this" <Type>

Parsing a @psalm-scope-this tag produces a PsalmScopeThisTag instance, carrying the parsed $type alongside the $name and optional $description every Tag already provides.

final class PsalmScopeThisTag extends TypedTag {}
08 July 2026