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

chore: trim summary before checking if it's empty #45458

Closed
wants to merge 1 commit into from

Conversation

st3iny
Copy link
Member

@st3iny st3iny commented May 22, 2024

Summary

As reviewed by Thomas.

Checklist

@st3iny st3iny added 3. to review Waiting for reviews feature: dav feature: caldav Related to CalDAV internals labels May 22, 2024
@st3iny st3iny added this to the Nextcloud 30 milestone May 22, 2024
@st3iny st3iny self-assigned this May 22, 2024
@st3iny
Copy link
Member Author

st3iny commented May 22, 2024

/backport to stable27

@st3iny
Copy link
Member Author

st3iny commented May 22, 2024

/backport to stable28

@st3iny
Copy link
Member Author

st3iny commented May 22, 2024

/backport to stable29

@st3iny st3iny closed this May 22, 2024
@st3iny st3iny deleted the chore/dav/empty-trim branch May 22, 2024 14:59
@st3iny st3iny removed this from the Nextcloud 30 milestone May 22, 2024
@@ -104,7 +104,7 @@
});

foreach ($vElements as $vElement) {
if (empty($vElement->select('SUMMARY'))) {
if (empty(trim($vElement->select('SUMMARY')))) {

Check failure

Code scanning / Psalm

InvalidArgument Error

Argument 1 of trim expects string, but array<array-key, mixed> provided
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews backport-request feature: caldav Related to CalDAV internals feature: dav
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants