Tag reference
@psalm-stub-override
The @psalm-stub-override tag marks a stub declaration as
intentionally overriding the real signature, telling Psalm not to
flag the mismatch between the two.
Grammar
"@psalm-stub-override" [ <Description> ]Examples
/** * @psalm-stub-override */function json_decode(string $json, ?bool $associative = null): mixed {}Names by platform
- psalm
@psalm-stub-override
Parsing a @psalm-stub-override tag produces a PsalmStubOverrideTag instance. Being a pure
marker, it adds nothing beyond the $name and optional $description
every Tag already carries.
final class PsalmStubOverrideTag extends FlagTag {}Defined by Psalm.