PublicMethodDeprecationTrait

This trait has no public methods by default, ensure to add a $deprecatedPublicMethods property to your class when using this trait.

Table of Contents

Methods

__call()  : mixed
Checks if the method of the given name is available, calls it but throws a deprecation.

Methods

__call()

Checks if the method of the given name is available, calls it but throws a deprecation.

public __call(string $methodName, array<string|int, mixed> $arguments) : mixed

If the method does not exist, a fatal error is thrown.

Unavailable protected methods must return in a fatal error as usual. Marked methods are called and a deprecation entry is thrown.

__call() is not called for public methods.

Parameters
$methodName : string
$arguments : array<string|int, mixed>

        
On this page

Search results