Skip to content

fix(OpenAPI): Fix array syntaxes#2090

Merged
nickvergessen merged 1 commit into
masterfrom
fix/openapi/array-syntax
Nov 4, 2024
Merged

fix(OpenAPI): Fix array syntaxes#2090
nickvergessen merged 1 commit into
masterfrom
fix/openapi/array-syntax

Conversation

@provokateurin

Copy link
Copy Markdown
Member

Signed-off-by: provokateurin <kate@provokateurin.de>
Comment thread lib/Capabilities.php
}

$ids = array_unique(array_filter(array_map(
$ids = array_values(array_unique(array_filter(array_map(

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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