Skip to content

Commit

Permalink
Merge pull request #41655 from nextcloud/fix/41630/search-value-bool
Browse files Browse the repository at this point in the history
  • Loading branch information
juliushaertl committed Nov 22, 2023
2 parents e1d3fb5 + ff823cf commit f79398c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/private/Files/Search/SearchComparison.php
Expand Up @@ -33,7 +33,7 @@ class SearchComparison implements ISearchComparison {
public function __construct(
private string $type,
private string $field,
private \DateTime|int|string $value,
private \DateTime|int|string|bool $value,
private string $extra = ''
) {
}
Expand All @@ -53,9 +53,9 @@ public function getField(): string {
}

/**
* @return \DateTime|int|string
* @return \DateTime|int|string|bool
*/
public function getValue(): string|int|\DateTime {
public function getValue(): string|int|bool|\DateTime {
return $this->value;
}

Expand Down
4 changes: 2 additions & 2 deletions lib/public/Files/Search/ISearchComparison.php
Expand Up @@ -67,8 +67,8 @@ public function getExtra(): string;
/**
* Get the value to compare the field with
*
* @return string|integer|\DateTime
* @return string|integer|bool|\DateTime
* @since 12.0.0
*/
public function getValue(): string|int|\DateTime;
public function getValue(): string|int|bool|\DateTime;
}

0 comments on commit f79398c

Please sign in to comment.