Skip to content

Commit 1bcae22

Browse files
committed
fix type hints
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent f69a18a commit 1bcae22

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/private/Files/Cache/Cache.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ public function getIncompleteChildrenCount($fileId) {
865865
* calculate the size of a folder and set it in the cache
866866
*
867867
* @param string $path
868-
* @param array $entry (optional) meta data of the folder
868+
* @param array|null|ICacheEntry $entry (optional) meta data of the folder
869869
* @param bool $ignoreUnknown don't mark the folder size as unknown if any of it's children are unknown
870870
* @return int
871871
*/
@@ -878,11 +878,11 @@ public function calculateFolderSize($path, $entry = null) {
878878
* inner function because we can't add new params to the public function without breaking any child classes
879879
*
880880
* @param string $path
881-
* @param array $entry (optional) meta data of the folder
881+
* @param array|null|ICacheEntry $entry (optional) meta data of the folder
882882
* @param bool $ignoreUnknown don't mark the folder size as unknown if any of it's children are unknown
883883
* @return int
884884
*/
885-
protected function calculateFolderSizeInner(string $path, array $entry = null, bool $ignoreUnknown = false) {
885+
protected function calculateFolderSizeInner(string $path, $entry = null, bool $ignoreUnknown = false) {
886886
$totalSize = 0;
887887
if (is_null($entry) || !isset($entry['fileid'])) {
888888
$entry = $this->get($path);

0 commit comments

Comments
 (0)