From 06fd8dc5e091e56fea87d8ee442d243ee05fbc2d Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 25 Nov 2023 19:35:19 +0100 Subject: [PATCH] Fix phpcs error --- app/TransactionRules/Engine/SearchRuleEngine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/TransactionRules/Engine/SearchRuleEngine.php b/app/TransactionRules/Engine/SearchRuleEngine.php index 47505be414..669e74ac79 100644 --- a/app/TransactionRules/Engine/SearchRuleEngine.php +++ b/app/TransactionRules/Engine/SearchRuleEngine.php @@ -115,7 +115,7 @@ class SearchRuleEngine implements RuleEngineInterface } // if needs no context, value is different: - $needsContext = (bool) config(sprintf('search.operators.%s.needs_context', $ruleTrigger->trigger_type)) ?? true; + $needsContext = (bool) (config(sprintf('search.operators.%s.needs_context', $ruleTrigger->trigger_type)) ?? true); if (false === $needsContext) { app('log')->debug(sprintf('SearchRuleEngine:: add a rule trigger (no context): %s:true', $ruleTrigger->trigger_type)); $searchArray[$ruleTrigger->trigger_type][] = 'true';