/home/techb158/dev.balacoffee.com/vendor/psy/psysh/src/Exception
Edit: /home/techb158/dev.balacoffee.com/vendor/psy/psysh/src/Exception/TypeErrorException.php (1431B)
rawMessage = $message;
$message = \preg_replace('/, called in .*?: eval\\(\\)\'d code/', '', $message);
parent::__construct(\sprintf('TypeError: %s', $message), $code, $previous);
}
/**
* Get the raw (unformatted) message for this error.
*/
public function getRawMessage(): string
{
return $this->rawMessage;
}
/**
* Create a TypeErrorException from a TypeError.
*
* @deprecated PsySH no longer wraps TypeErrors
*
* @param \TypeError $e
*/
public static function fromTypeError(\TypeError $e): self
{
return new self($e->getMessage(), $e->getCode(), $e);
}
}