Skip to content

Commit

Permalink
Merge pull request #1457 from tcitworld/allow-sync-get-changes-to-ret…
Browse files Browse the repository at this point in the history
…urn-null

fix(sync): Fix PHPDoc to allow getChanges for sync to return null
  • Loading branch information
DeepDiver1975 committed Mar 22, 2023
2 parents 2d8f6d9 + 9b10ec6 commit 8e09bff
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/CalDAV/Backend/PDO.php
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ public function getCalendarObjectByUID($principalUri, $uid)
* @param int $syncLevel
* @param int $limit
*
* @return array
* @return array|null
*/
public function getChangesForCalendar($calendarId, $syncToken, $syncLevel, $limit = null)
{
Expand Down
2 changes: 1 addition & 1 deletion lib/CalDAV/Backend/SyncSupport.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ interface SyncSupport extends BackendInterface
* @param int $syncLevel
* @param int $limit
*
* @return array
* @return array|null
*/
public function getChangesForCalendar($calendarId, $syncToken, $syncLevel, $limit = null);
}
2 changes: 1 addition & 1 deletion lib/CalDAV/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ public function getSyncToken()
* @param int $syncLevel
* @param int $limit
*
* @return array
* @return array|null
*/
public function getChanges($syncToken, $syncLevel, $limit = null)
{
Expand Down
2 changes: 1 addition & 1 deletion lib/CardDAV/AddressBook.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public function getSyncToken()
* @param int $syncLevel
* @param int $limit
*
* @return array
* @return array|null
*/
public function getChanges($syncToken, $syncLevel, $limit = null)
{
Expand Down
2 changes: 1 addition & 1 deletion lib/CardDAV/Backend/PDO.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ public function deleteCard($addressBookId, $cardUri)
* @param int $syncLevel
* @param int $limit
*
* @return array
* @return array|null
*/
public function getChangesForAddressBook($addressBookId, $syncToken, $syncLevel, $limit = null)
{
Expand Down
2 changes: 1 addition & 1 deletion lib/CardDAV/Backend/SyncSupport.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ interface SyncSupport extends BackendInterface
* @param int $syncLevel
* @param int $limit
*
* @return array
* @return array|null
*/
public function getChangesForAddressBook($addressBookId, $syncToken, $syncLevel, $limit = null);
}
2 changes: 1 addition & 1 deletion lib/DAV/Sync/ISyncCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function getSyncToken();
* @param int $syncLevel
* @param int $limit
*
* @return array
* @return array|null
*/
public function getChanges($syncToken, $syncLevel, $limit = null);
}
2 changes: 1 addition & 1 deletion tests/Sabre/DAV/Sync/MockSyncCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function addChange(array $added, array $modified, array $deleted)
* @param int $syncLevel
* @param int $limit
*
* @return array
* @return array|null
*/
public function getChanges($syncToken, $syncLevel, $limit = null)
{
Expand Down

0 comments on commit 8e09bff

Please sign in to comment.