2 declare(strict_types = 1);
83 public function __call(
string $methodName, array $arguments)
85 if (method_exists($this, $methodName) && isset($this->deprecatedPublicMethods[$methodName])) {
86 trigger_error($this->deprecatedPublicMethods[$methodName], E_USER_DEPRECATED);
87 return $this->$methodName(...$arguments);
91 if (method_exists($this, $methodName)) {
92 throw new \Error(
'Call to protected/private method ' . self::class .
'::' . $methodName .
'()');
95 throw new \Error(
'Call to undefined method ' . self::class .
'::' . $methodName .
'()');