diff --git a/src/Driver/LambdatestFactory.php b/src/Driver/LambdatestFactory.php index 709e17e..6fc78df 100644 --- a/src/Driver/LambdatestFactory.php +++ b/src/Driver/LambdatestFactory.php @@ -33,7 +33,7 @@ public function configure(ArrayNodeDefinition $builder) public function buildDriver(array $config) { $envValues = getenv(); - if (($config['user'] === null || $config['key'] === null) && (!isset($envValues['LT_USERNAME']) || !isset($envValues['LT_USERKEY']))) { + if ((!isset($config['user']) || !isset($config['key'])) && (!isset($envValues['LT_USERNAME']) || !isset($envValues['LT_USERKEY']))) { throw new \Exception('Configure environment variable LT_USERNAME and LT_USERKEY with credential from Lambdatest'); }