From df55c25321de93092b3cf8799863903a65b44eed Mon Sep 17 00:00:00 2001 From: Mathias Brodala Date: Fri, 2 Mar 2018 16:39:24 +0100 Subject: [PATCH 1/2] Add Query::withText This was missing in #743 and is essential for mocking in tests. --- src/Common/Query/Query.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Common/Query/Query.php b/src/Common/Query/Query.php index 41e3bee14..bc73c9695 100644 --- a/src/Common/Query/Query.php +++ b/src/Common/Query/Query.php @@ -17,6 +17,13 @@ */ interface Query { + /** + * @param string $text + * + * @return Query + */ + public function withText(string $text); + /** * @param string $locale * From 1abf8bb112df0762bd82902e80fa406a485a11d0 Mon Sep 17 00:00:00 2001 From: Mathias Brodala Date: Fri, 2 Mar 2018 16:40:21 +0100 Subject: [PATCH 2/2] Fix whitespace --- src/Common/Query/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common/Query/Query.php b/src/Common/Query/Query.php index bc73c9695..3e4df3776 100644 --- a/src/Common/Query/Query.php +++ b/src/Common/Query/Query.php @@ -23,7 +23,7 @@ interface Query * @return Query */ public function withText(string $text); - + /** * @param string $locale *