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
@@ -40,7 +40,7 @@ class AccountContext {
/**
* Create a new context using an AAUID and an OAuth 2.0 bearer access token.
*/
public function __construct(IRI $aauid, $accessToken, DataLoader $dataLoader = null) {
public function __construct(IRI $aauid, $accessToken, ?DataLoader $dataLoader = null) {
if (AAUIDParser::getType($aauid) != AAUIDParser::AAUID_ACCOUNT)
throw new \Exception("Not a valid AAUID");