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