Skip to content

Commit ee1791d

Browse files
committed
Fixed nullable parameter definition
1 parent 3739ecc commit ee1791d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Component/AdminRoles.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private function createAdminRole($roleName, $resources)
114114
* @param role
115115
* @param array|null $resources
116116
*/
117-
private function setResourceIds($role, array $resources = null)
117+
private function setResourceIds($role, ?array $resources = null)
118118
{
119119
$roleName = $role->getRoleName();
120120

Component/ApiIntegrations.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private function convertToUseableData(array $integrationData)
153153
* @param $integrationId
154154
* @param array $resources
155155
*/
156-
private function setPermissions($integrationId, array $resources = null)
156+
private function setPermissions($integrationId, ?array $resources = null)
157157
{
158158
$authorizationService = $this->authorizationService;
159159
$authorizationService->grantPermissions($integrationId, $resources);

0 commit comments

Comments
 (0)