Skip to content

Commit f79398c

Browse files
authored
Merge pull request #41655 from nextcloud/fix/41630/search-value-bool
2 parents e1d3fb5 + ff823cf commit f79398c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/private/Files/Search/SearchComparison.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class SearchComparison implements ISearchComparison {
3333
public function __construct(
3434
private string $type,
3535
private string $field,
36-
private \DateTime|int|string $value,
36+
private \DateTime|int|string|bool $value,
3737
private string $extra = ''
3838
) {
3939
}
@@ -53,9 +53,9 @@ public function getField(): string {
5353
}
5454

5555
/**
56-
* @return \DateTime|int|string
56+
* @return \DateTime|int|string|bool
5757
*/
58-
public function getValue(): string|int|\DateTime {
58+
public function getValue(): string|int|bool|\DateTime {
5959
return $this->value;
6060
}
6161

lib/public/Files/Search/ISearchComparison.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ public function getExtra(): string;
6767
/**
6868
* Get the value to compare the field with
6969
*
70-
* @return string|integer|\DateTime
70+
* @return string|integer|bool|\DateTime
7171
* @since 12.0.0
7272
*/
73-
public function getValue(): string|int|\DateTime;
73+
public function getValue(): string|int|bool|\DateTime;
7474
}

0 commit comments

Comments
 (0)