mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 01:03:13 +08:00
Added nullsafe operator to simplify conditions
This commit is contained in:
@@ -22,7 +22,7 @@ class ApiKeyService implements ApiKeyServiceInterface
|
||||
public function create(
|
||||
?Chronos $expirationDate = null,
|
||||
?string $name = null,
|
||||
RoleDefinition ...$roleDefinitions
|
||||
RoleDefinition ...$roleDefinitions,
|
||||
): ApiKey {
|
||||
$key = $this->buildApiKeyWithParams($expirationDate, $name);
|
||||
foreach ($roleDefinitions as $definition) {
|
||||
|
||||
Reference in New Issue
Block a user