Skip to content

Commit

Permalink
accept boolean value
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Nov 22, 2023
1 parent 73ecc8f commit ff823cf
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 ff823cf

Please sign in to comment.