]> git.mxchange.org Git - friendica-addons.git/commitdiff
Fix PHPStan errors in phpnut addon
authorArt4 <art4@wlabs.de>
Wed, 26 Feb 2025 15:12:25 +0000 (15:12 +0000)
committerArt4 <art4@wlabs.de>
Wed, 26 Feb 2025 15:12:25 +0000 (15:12 +0000)
pnut/lib/phpnut.php

index ff7652438cd2f77e1267f362378a40a822602109..716945eddfd6bb2333204ac4ca96a53545ba3060 100644 (file)
@@ -1025,7 +1025,7 @@ class phpnut
      * see: https://docs.pnut.io/resources/posts/search
      * @param string $query The search query. Supports
      * normal search terms. Searches post text.
-     * @return array An array of associative arrays, each representing one post.
+     * @return string|array|false An array of associative arrays, each representing one post.
      * or false on error
      */
     public function searchPosts(array $params=[], string $query='', string $order='default')
@@ -1769,7 +1769,7 @@ class phpnut
      * see: https://docs.pnut.io/resources/messages/search
      * @param string $query The search query. Supports
      * normal search terms. Searches common channel raw.
-     * @return array An array of associative arrays, each representing one channel.
+     * @return string|array|false An array of associative arrays, each representing one channel.
      * or false on error
      */
     public function searchMessages(array $params=[], string $query='', string $order='default')