@phan-forbid-undeclared-magic-methods
The @phan-forbid-undeclared-magic-methods tag forbids calling undeclared magic methods on the class it decorates, so only the methods actually documented via @method may be called.
"@phan-forbid-undeclared-magic-methods" [ <Description> ]
Parsing a @phan-forbid-undeclared-magic-methods tag produces a PhanForbidUndeclaredMagicMethodsTag instance. Being a pure marker, it adds nothing beyond the $name and optional $description every Tag already carries.
final class PhanForbidUndeclaredMagicMethodsTag extends FlagTag {}
See Phan's Annotating Your Source Code wiki, where it is mentioned in body text.
08 July 2026