2020-03-10 20:12:55 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-immutable
|
|
|
|
*/
|
|
|
|
class DateTimeImmutable implements DateTimeInterface
|
|
|
|
{
|
2021-02-14 18:07:39 +01:00
|
|
|
public function __construct(string $datetime = "now", DateTimeZone $timezone = null) {}
|
2020-03-10 20:12:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-immutable
|
|
|
|
*/
|
|
|
|
class DateTimeZone
|
|
|
|
{
|
2021-02-14 18:07:39 +01:00
|
|
|
public function __construct(string $timezone) {}
|
2020-03-10 20:12:55 +01:00
|
|
|
}
|
|
|
|
|
2020-06-24 17:51:24 +02:00
|
|
|
/**
|
|
|
|
* @psalm-taint-specialize
|
|
|
|
*/
|
2020-03-10 20:12:55 +01:00
|
|
|
interface Throwable
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
2020-04-20 23:17:47 +02:00
|
|
|
public function getMessage() : string;
|
2020-04-18 04:08:26 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
2020-04-18 16:39:23 +02:00
|
|
|
*
|
|
|
|
* @return int|string https://www.php.net/manual/en/throwable.getcode.php
|
2020-04-18 04:08:26 +02:00
|
|
|
*/
|
2020-04-20 23:17:47 +02:00
|
|
|
public function getCode();
|
2020-04-18 04:08:26 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
2020-04-20 23:17:47 +02:00
|
|
|
public function getFile() : string;
|
2020-04-18 04:08:26 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
2020-04-20 23:17:47 +02:00
|
|
|
public function getLine() : int;
|
2020-04-18 04:08:26 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
2020-04-20 23:17:47 +02:00
|
|
|
public function getTrace() : array;
|
2020-04-18 04:08:26 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
2020-04-20 23:17:47 +02:00
|
|
|
public function getPrevious() : ?Throwable;
|
2020-04-18 04:08:26 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
2020-07-02 03:27:40 +02:00
|
|
|
* @psalm-taint-source input
|
2020-04-18 04:08:26 +02:00
|
|
|
*/
|
2020-04-20 23:17:47 +02:00
|
|
|
public function getTraceAsString() : string;
|
2020-07-02 03:27:40 +02:00
|
|
|
|
|
|
|
/**
|
2020-07-02 20:09:56 +02:00
|
|
|
* @return string
|
2020-07-02 03:27:40 +02:00
|
|
|
* @psalm-taint-source input
|
|
|
|
*/
|
2020-07-02 20:09:56 +02:00
|
|
|
public function __toString();
|
2020-03-10 20:12:55 +01:00
|
|
|
}
|
|
|
|
|
2020-06-24 17:51:24 +02:00
|
|
|
/**
|
|
|
|
* @psalm-taint-specialize
|
|
|
|
*/
|
2020-03-10 20:12:55 +01:00
|
|
|
class Exception implements Throwable
|
|
|
|
{
|
2020-03-11 20:43:15 +01:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
2020-03-11 22:41:05 +01:00
|
|
|
protected $message = '';
|
2020-03-11 20:43:15 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
2020-03-11 22:41:05 +01:00
|
|
|
protected $code = 0;
|
2020-03-11 20:43:15 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
2020-03-11 22:41:05 +01:00
|
|
|
protected $file = '';
|
2020-03-11 20:43:15 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
2020-03-11 22:41:05 +01:00
|
|
|
protected $line = 0;
|
2020-03-11 20:43:15 +01:00
|
|
|
|
2020-03-10 20:12:55 +01:00
|
|
|
/**
|
|
|
|
* @psalm-external-mutation-free
|
|
|
|
* @param string $message
|
|
|
|
* @param int $code
|
|
|
|
* @param Throwable $previous
|
|
|
|
*/
|
2020-03-11 22:41:05 +01:00
|
|
|
public function __construct($message = "", $code = 0, Throwable $previous = null) {}
|
2020-03-10 20:12:55 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getMessage() : string {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
2020-04-18 16:39:23 +02:00
|
|
|
*
|
|
|
|
* @return int|string https://www.php.net/manual/en/throwable.getcode.php
|
2020-03-10 20:12:55 +01:00
|
|
|
*/
|
2020-04-18 16:39:23 +02:00
|
|
|
public final function getCode() {}
|
2020-03-10 20:12:55 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
2020-04-18 04:08:26 +02:00
|
|
|
public final function getFile(): string {}
|
2020-03-10 20:12:55 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
2020-04-18 04:08:26 +02:00
|
|
|
public final function getLine(): int {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getTrace() : array {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getPrevious() : ?Throwable {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
2020-07-02 03:27:40 +02:00
|
|
|
* @psalm-taint-source input
|
2020-04-18 04:08:26 +02:00
|
|
|
*/
|
|
|
|
public final function getTraceAsString() : string {}
|
2020-07-02 03:27:40 +02:00
|
|
|
|
|
|
|
/**
|
2020-07-02 20:09:56 +02:00
|
|
|
* @return string
|
2020-07-02 03:27:40 +02:00
|
|
|
* @psalm-taint-source input
|
|
|
|
*/
|
2020-07-02 20:09:56 +02:00
|
|
|
public function __toString() {}
|
2020-03-10 20:12:55 +01:00
|
|
|
}
|
2020-03-22 00:11:23 +01:00
|
|
|
|
2020-06-24 17:51:24 +02:00
|
|
|
/**
|
|
|
|
* @psalm-taint-specialize
|
|
|
|
*/
|
2020-03-22 00:11:23 +01:00
|
|
|
class Error implements Throwable
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $message = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
protected $code = 0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $file = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
protected $line = 0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-external-mutation-free
|
|
|
|
* @param string $message
|
|
|
|
* @param int $code
|
|
|
|
* @param Throwable $previous
|
|
|
|
*/
|
|
|
|
public function __construct($message = "", $code = 0, Throwable $previous = null) {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getMessage() : string {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
2020-04-18 04:08:26 +02:00
|
|
|
public final function getCode(): int {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getFile(): string {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getLine(): int{}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getTrace() : array {}
|
2020-03-22 00:11:23 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
2020-04-18 04:08:26 +02:00
|
|
|
public final function getPrevious() : ?Throwable {}
|
2020-03-22 00:11:23 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
2020-07-02 03:27:40 +02:00
|
|
|
* @psalm-taint-source input
|
2020-03-22 00:11:23 +01:00
|
|
|
*/
|
2020-04-18 04:08:26 +02:00
|
|
|
public final function getTraceAsString() : string {}
|
2020-07-02 03:27:40 +02:00
|
|
|
|
|
|
|
/**
|
2020-07-02 20:09:56 +02:00
|
|
|
* @return string
|
2020-07-02 03:27:40 +02:00
|
|
|
* @psalm-taint-source input
|
|
|
|
*/
|
2020-07-02 20:09:56 +02:00
|
|
|
public function __toString() {}
|
2020-03-22 00:11:23 +01:00
|
|
|
}
|