@@ -41,16 +41,21 @@ public function getScope(string $name): ?QueryScopeInterface
4141 *
4242 * Used by the twig command {% setcontent %} but also directly.
4343 * For reference refer to @see https://docs.bolt.cm/templating/content-fetching
44+ *
45+ * @return Pagerfanta|Content|null
4446 */
45- public function getContent (string $ textQuery , array $ parameters = []): Pagerfanta | Content | null
47+ public function getContent (string $ textQuery , array $ parameters = [])
4648 {
4749 $ this ->parser ->setQuery ($ textQuery );
4850 $ this ->parser ->setParameters ($ parameters );
4951
5052 return $ this ->parser ->fetch ();
5153 }
5254
53- public function getContentByScope (string $ scopeName , string $ textQuery , array $ parameters = []): Pagerfanta |Content |null
55+ /**
56+ * @return Content|Pagerfanta|null
57+ */
58+ public function getContentByScope (string $ scopeName , string $ textQuery , array $ parameters = [])
5459 {
5560 $ scope = $ this ->getScope ($ scopeName );
5661 if ($ scope ) {
@@ -69,8 +74,9 @@ public function getContentByScope(string $scopeName, string $textQuery, array $p
6974 *
7075 * @param string $textQuery The base part like `pages` or `pages/1`
7176 * @param array $parameters Parameters like `printquery` and `paging`, but also `where` parameters taken from `... where { foo: bar } ...`
77+ * @return Pagerfanta|Content|null
7278 */
73- public function getContentForTwig (string $ textQuery , array $ parameters = []): Pagerfanta | Content | null
79+ public function getContentForTwig (string $ textQuery , array $ parameters = [])
7480 {
7581 if (empty ($ textQuery )) {
7682 return new Pagerfanta (new ArrayAdapter ([]));
0 commit comments