From d70bd75c247e76c6a0f4e10df5ec483ba2cc0d08 Mon Sep 17 00:00:00 2001 From: zingimmick Date: Tue, 5 Apr 2022 19:45:33 +0800 Subject: [PATCH] Simplified type checking --- src/Commands/SmsSwitchConnectionCommand.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Commands/SmsSwitchConnectionCommand.php b/src/Commands/SmsSwitchConnectionCommand.php index ce56006..6578066 100644 --- a/src/Commands/SmsSwitchConnectionCommand.php +++ b/src/Commands/SmsSwitchConnectionCommand.php @@ -71,11 +71,7 @@ protected function getOptions(): array public function handle(): void { $connection = $this->argument('connection'); - if (\is_array($connection)) { - return; - } - - if ($connection === null) { + if (! is_string($connection)) { return; }