Skip to content

Commit

Permalink
fix-non-nullable-superclass-vars: set to empty string non nullable an…
Browse files Browse the repository at this point in the history
…d variables
  • Loading branch information
aalbarca committed Nov 19, 2023
1 parent 67e3043 commit 1ece11a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WhatsAppCloudApiApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public function __construct(?string $from_phone_number_id = null, ?string $acces
{
$this->loadEnv();

$this->from_phone_number_id = $from_phone_number_id ?: $_ENV[static::APP_FROM_PHONE_NUMBER_ENV_NAME] ?? null;
$this->access_token = $access_token ?: $_ENV[static::APP_TOKEN_ENV_NAME] ?? null;
$this->from_phone_number_id = $from_phone_number_id ?: $_ENV[static::APP_FROM_PHONE_NUMBER_ENV_NAME] ?? '';
$this->access_token = $access_token ?: $_ENV[static::APP_TOKEN_ENV_NAME] ?? '';
$this->business_id = $business_id ?: $_ENV[static::APP_BUSINESS_ID_ENV_NAME] ?? '';

$this->validate($this->from_phone_number_id, $this->access_token, $this->business_id);
Expand Down

0 comments on commit 1ece11a

Please sign in to comment.