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
@@ -53,7 +53,7 @@ class CryptoHelper {
* @param ObjectRetriever $objectRetriever An initialized and authenticated object retriever.
* @param IRI|null $namespaceCoid The namespace used to retrieve keys. 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) {
if (!class_exists('Defuse\Crypto\Crypto'))
throw new Exception("Run composer require defuse/php-encryption before using CryptoHelper.");