Classes

Read the class name an attribute argument gives, as instantiating the attribute evaluates it.

A required parameter of a callable type the package builds, such as an expected eager-loading callback.

Describe a relation method that a __call() handles without arguments, such as a relation that resolveRelationUsing() registers or a model's through{Relation}().

A builder method synthesized for a call that the builder's __call() handles.

Describe a forwarded fluent method whose runtime result is the receiving object.

Describe a method that another object handles for the receiver.

Describe a method an Eloquent model's call() or callStatic() handles, which is callable both ways.

Describe an Eloquent builder's macro() or mixin(), which both its call() and callStatic() accept.

Preserve model-relative parameter types on an exposed scope method.

Describe a model scope as invoked through an Eloquent receiver.

Describe a method that a proxy passes to its target, returning what the proxy returns.

Describe a target method's parameter as a proxy receives it. A proxy's __call() gets the argument values, so the caller's variable is never passed by reference. The parameter has none of PHPStan's extended metadata, such as a closure binding the target declares.

Describe a read-only property that a proxy reads from its target, typed as what the proxy returns, with the target property's deprecation.

Finds the files that values read through reflection come from, for result cache dependencies.

Describe the routing macro using its native signature and receiver-specific result.