/** * Pass-through to plugins, then Image\Info. This is for BC. * * @param string $method * @param array $arguments * * @return mixed */ public function __call($method, array $arguments) { try { return parent::__call($method, $arguments); } catch (BadMethodCallException $e) { } $info = $this->getInfo(); if (method_exists($info, 'get' . $method)) { return call_user_func([$info, 'get' . $method]); } elseif (method_exists($info, 'is' . $method)) { return call_user_func([$info, 'is' . $method]); } throw $e; }