Use ? to mark parameters as nullable to prevent PHP 8.4 deprecation warning

This commit is contained in:
2026-06-19 08:28:06 +00:00
parent ce77709d37
commit f9fabe838a
5 changed files with 27 additions and 27 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ class APIClientFactory {
* @param ObjectRetriever $objectRetriever An initialized and authenticated object retriever.
* @param IRI|null $namespaceCoid The namespace of the API client. Used to retrieve credentials. If this parameter is not provided, the namespace provided with the "auth_ns" configuration option from the object retriever is used.
*/
public function __construct(ObjectRetriever $objectRetriever, IRI $namespaceCoid = null) {
public function __construct(ObjectRetriever $objectRetriever, ?IRI $namespaceCoid = null) {
$this->objectRetriever = $objectRetriever;
$this->namespace = isset($namespaceCoid)
? $objectRetriever->getObjectNode($namespaceCoid)