Use ? to mark parameters as nullable to prevent PHP 8.4 deprecation warning
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user