Skip to content

Firefly III: a personal finances manager

Restore missing method.

James Cole85c2e9cf1e1f
diff --git a/.ci/phpstan.sh b/.ci/phpstan.sh
index 4efa51ed6c..3b3beea910 100755
--- a/.ci/phpstan.sh
+++ b/.ci/phpstan.sh
@@ -31,3 +31,5 @@ SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# Do static code analysis.
# ./vendor/bin/phpstan analyse -c .ci/phpstan.neon --no-progress
./vendor/bin/phpstan analyse -c .ci/phpstan.neon --xdebug --error-format=table > phpstan-report.txt
+
+echo 'The PHPstan report can be found in phpstan-report.txt'
diff --git a/app/Support/Search/OperatorQuerySearch.php b/app/Support/Search/OperatorQuerySearch.php
index ee94bea697..b28c09f2f6 100644
--- a/app/Support/Search/OperatorQuerySearch.php
+++ b/app/Support/Search/OperatorQuerySearch.php
@@ -73,11 +73,14 @@ class OperatorQuerySearch implements SearchInterface
private int $limit;
private Collection $operators;
private int $page;
- private array $prohibitedWords;
- private float $startTime;
- private TagRepositoryInterface $tagRepository;
- private array $validOperators;
- private array $words;
+ protected Carbon $date;
+
+
+ private array $prohibitedWords;
+ private float $startTime;
+ private TagRepositoryInterface $tagRepository;
+ private array $validOperators;
+ private array $words;
/**
* OperatorQuerySearch constructor.
@@ -113,7 +116,6 @@ class OperatorQuerySearch implements SearchInterface
/**
* @inheritDoc
-
*/
public function getModifiers(): Collection
{
@@ -122,7 +124,6 @@ class OperatorQuerySearch implements SearchInterface
/**
* @inheritDoc
-
*/
public function getOperators(): Collection
{
@@ -131,7 +132,6 @@ class OperatorQuerySearch implements SearchInterface
/**
* @inheritDoc
-
*/
public function getWordsAsString(): string
{
@@ -140,7 +140,6 @@ class OperatorQuerySearch implements SearchInterface
/**
* @inheritDoc
-
*/
public function hasModifiers(): bool
{
@@ -1990,7 +1989,6 @@ class OperatorQuerySearch implements SearchInterface
/**
* @inheritDoc
-
*/
public function searchTime(): float
{
@@ -2019,7 +2017,6 @@ class OperatorQuerySearch implements SearchInterface
/**
* @inheritDoc
-
*/
public function setPage(int $page): void
{
@@ -2029,7 +2026,6 @@ class OperatorQuerySearch implements SearchInterface
/**
* @inheritDoc
-
*/
public function setUser(User $user): void
{
@@ -2053,4 +2049,12 @@ class OperatorQuerySearch implements SearchInterface
$this->limit = $limit;
$this->collector->setLimit($this->limit);
}
+
+ /**
+ * @param Carbon $date
+ */
+ public function setDate(Carbon $date): void
+ {
+ $this->date = $date;
+ }
}