]> source.dussan.org Git - nextcloud-server.git/commitdiff
accept boolean value 41655/head
authorMaxence Lange <maxence@artificial-owl.com>
Wed, 22 Nov 2023 02:20:34 +0000 (01:20 -0100)
committerMaxence Lange <maxence@artificial-owl.com>
Wed, 22 Nov 2023 02:20:42 +0000 (01:20 -0100)
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
lib/private/Files/Search/SearchComparison.php
lib/public/Files/Search/ISearchComparison.php

index 4f9ac266397bd4b2950a109d18b2cb1ab176922e..d94b3e9dfab30a37e72dbf6771c035654e097d43 100644 (file)
@@ -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;
        }
 
index 68924d1e369b96820ea5a9f18fb82b81360ef13a..d7313fbaf2a5dbe25401570f01cdc74937092e15 100644 (file)
@@ -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;
 }