From ea8f9a7e841061ed96f291aa3c9a413fe2402b5c Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Sun, 17 Sep 2023 10:43:23 +0200 Subject: refactor: Repalce array_search with in_array in lib/ Signed-off-by: Christoph Wurst --- lib/private/Command/AsyncBus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Command/AsyncBus.php') diff --git a/lib/private/Command/AsyncBus.php b/lib/private/Command/AsyncBus.php index ec6fbc91f68..c65e6cad78e 100644 --- a/lib/private/Command/AsyncBus.php +++ b/lib/private/Command/AsyncBus.php @@ -82,7 +82,7 @@ abstract class AsyncBus implements IBus { private function canRunAsync($command) { $traits = $this->getTraits($command); foreach ($traits as $trait) { - if (array_search($trait, $this->syncTraits) !== false) { + if (in_array($trait, $this->syncTraits)) { return false; } } -- cgit v1.2.3