File "UnexpectedValueException.php"

Full Path: /home/warrior1/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/common/lib/Doctrine/Common/Proxy/Exception/UnexpectedValueException.php
File size: 970 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
namespace MailPoetVendor\Doctrine\Common\Proxy\Exception;
if (!defined('ABSPATH')) exit;
use Throwable;
use UnexpectedValueException as BaseUnexpectedValueException;
use function sprintf;
class UnexpectedValueException extends BaseUnexpectedValueException implements ProxyException
{
 public static function proxyDirectoryNotWritable($proxyDirectory)
 {
 return new self(sprintf('Your proxy directory "%s" must be writable', $proxyDirectory));
 }
 public static function invalidParameterTypeHint($className, $methodName, $parameterName, ?Throwable $previous = null)
 {
 return new self(sprintf('The type hint of parameter "%s" in method "%s" in class "%s" is invalid.', $parameterName, $methodName, $className), 0, $previous);
 }
 public static function invalidReturnTypeHint($className, $methodName, ?Throwable $previous = null)
 {
 return new self(sprintf('The return type of method "%s" in class "%s" is invalid.', $methodName, $className), 0, $previous);
 }
}