Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accept boolean value #41655

Merged
merged 1 commit into from Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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;
}