mirror of
https://github.com/nextcloud/server.git
synced 2025-03-13 07:53:51 +00:00
accept boolean value
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
73ecc8f1db
commit
ff823cf926
2 changed files with 5 additions and 5 deletions
lib
|
@ -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 = ''
|
||||
) {
|
||||
}
|
||||
|
@ -53,9 +53,9 @@ class SearchComparison implements ISearchComparison {
|
|||
}
|
||||
|
||||
/**
|
||||
* @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;
|
||||
}
|
||||
|
||||
|
|
|
@ -67,8 +67,8 @@ interface ISearchComparison extends ISearchOperator {
|
|||
/**
|
||||
* 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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue