Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Small QoL additions
Sobuno50e07d422f5d
diff --git a/app/Support/Search/QueryParser.php b/app/Support/Search/QueryParser.phpindex 9005671c71..19a1c678ca 100644--- a/app/Support/Search/QueryParser.php+++ b/app/Support/Search/QueryParser.php@@ -14,7 +14,7 @@ class NodeResult{public function __construct(public readonly ?Node $node,- public readonly bool $isQueryEnd+ public readonly bool $isSubqueryEnd) {}}@@ -30,6 +30,7 @@ class QueryParser implements QueryParserInterfaceprivate string $query;private int $position = 0;+ /** @return Node[] */public function parse(string $query): array{$this->query = $query;@@ -37,6 +38,7 @@ class QueryParser implements QueryParserInterfacereturn $this->parseQuery(false);}+ /** @return Node[] */private function parseQuery(bool $isSubquery): array{$nodes = [];@@ -44,7 +46,7 @@ class QueryParser implements QueryParserInterfacewhile ($nodeResult->node !== null) {$nodes[] = $nodeResult->node;- if($nodeResult->isQueryEnd) {+ if($nodeResult->isSubqueryEnd) {break;}$nodeResult = $this->buildNextNode($isSubquery);