Skip to content

Conversation

@SebastianKrupinski
Copy link
Contributor

Summary

  • Testing with empty will accommodate both null and empty string values

$calendarInfo = $this->caldavBackend->getCalendarById($calendarid);
$tzProp = '{urn:ietf:params:xml:ns:caldav}calendar-timezone';
if (!isset($calendarInfo[$tzProp])) {
if (empty($calendarInfo[$tzProp])) {

Check notice

Code scanning / Psalm

RiskyTruthyFalsyComparison

Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead.
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

Please add a test to \OCA\DAV\Tests\unit\CalDAV\Reminder\ReminderServiceTest

@susnux susnux added the bug label Jul 25, 2024
@skjnldsv skjnldsv added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Jul 27, 2024
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

Thank for the test 🙏

@SebastianKrupinski SebastianKrupinski merged commit e21fc6c into master Aug 8, 2024
@SebastianKrupinski SebastianKrupinski deleted the fix/issue-43923 branch August 8, 2024 11:55
@Altahrim Altahrim mentioned this pull request Aug 8, 2024
@AndyScherzinger AndyScherzinger added this to the Nextcloud 30 milestone Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Error while running background job (End of document reached prematurely)

7 participants