Skip to content

Commit

Permalink
Return empty array as requested by PHPDoc ... (#960)
Browse files Browse the repository at this point in the history
... followup functions like processICalendarChange expect an array as well. Returning null here will result in a type error

Argument 3 passed to Sabre\\CalDAV\\Schedule\\Plugin::processICalendarChange() must be of the type array, null given
  • Loading branch information
DeepDiver1975 authored and staabm committed May 17, 2017
1 parent d805e51 commit 6584481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CalDAV/Schedule/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ protected function getAddressesForPrincipal($principal) {

// If we can't find this information, we'll stop processing
if (!isset($properties[$CUAS])) {
return;
return [];
}

$addresses = $properties[$CUAS]->getHrefs();
Expand Down

0 comments on commit 6584481

Please sign in to comment.