feat: Add PHP 8.4 support

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2024-11-08 12:06:31 +01:00
commit 8a6c8cd17c
No known key found for this signature in database
GPG key ID: F72FA5B49FFA96B0
4 changed files with 7 additions and 5 deletions

View file

@ -222,6 +222,8 @@ jobs:
- "8.0"
- "8.1"
- "8.2"
- "8.3"
- "8.4"
steps:
- name: krb5-dev

View file

@ -12,7 +12,7 @@ use Throwable;
* @psalm-consistent-constructor
*/
class Exception extends \Exception {
public function __construct(string $message = "", int $code = 0, Throwable $previous = null) {
public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null) {
parent::__construct($message, $code, $previous);
}

View file

@ -12,7 +12,7 @@ class InvalidRequestException extends Exception {
*/
protected $path;
public function __construct(string $path = "", int $code = 0, \Throwable $previous = null) {
public function __construct(string $path = "", int $code = 0, ?\Throwable $previous = null) {
$class = get_class($this);
$parts = explode('\\', $class);
$baseName = array_pop($parts);

View file

@ -33,9 +33,9 @@ class ServerFactory {
* @param ITimeZoneProvider|null $timeZoneProvider
*/
public function __construct(
IOptions $options = null,
ISystem $system = null,
ITimeZoneProvider $timeZoneProvider = null
?IOptions $options = null,
?ISystem $system = null,
?ITimeZoneProvider $timeZoneProvider = null
) {
if (is_null($options)) {
$options = new Options();