Overrides Exception::__construct
public function __construct(string $type, string $methodName) { parent::__construct(sprintf('Trying to configure method "%s" with onlyMethods(), but it does not exist in class "%s"', $methodName, $type)); }