From f36065a49ba49532336de0da21a561dafd52d0f2 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Sat, 14 Dec 2024 00:13:27 +1300 Subject: [PATCH] Fix deprecation warning for explicit nullable type. --- inc/DAVResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/DAVResource.php b/inc/DAVResource.php index 343b150f..78c7d7a0 100644 --- a/inc/DAVResource.php +++ b/inc/DAVResource.php @@ -173,7 +173,7 @@ class DAVResource * field of the resource is populated with the given data, so it does not need * to be queried again later */ - function __construct( $parameters = null, DAVResource $prefetched_collection = null ) { + function __construct( $parameters = null, ?DAVResource $prefetched_collection = null ) { $this->exists = null; $this->bound_from = null; $this->dav_name = null;