Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(OpenAPI): Fix array syntaxes #2090

Merged
merged 1 commit into from
Nov 4, 2024
Merged

Conversation

provokateurin
Copy link
Member

@@ -195,10 +195,10 @@ public function confirmIdsForUser(string $apiVersion, array $ids): DataResponse
return new DataResponse([], Http::STATUS_BAD_REQUEST);
}

$ids = array_unique(array_filter(array_map(
$ids = array_values(array_unique(array_filter(array_map(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not what we return, so I don't really get why this is needed (just for understanding it)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but it is cleaner to make the confirmIdsForUser() also only accept and return list<int>.
Technically not needed to change this, but I did it for completeness.

@nextcloud nextcloud deleted a comment from nickvergessen Nov 4, 2024
@provokateurin
Copy link
Member Author

Sorry I accidentally deleted the comment, I didn't mean to do so.

@nickvergessen nickvergessen merged commit d4fdfa1 into master Nov 4, 2024
44 checks passed
@nickvergessen nickvergessen deleted the fix/openapi/array-syntax branch November 4, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants