Skip to content

Commit 2b54e30

Browse files
committed
fix: straggling type hints
1 parent 344969c commit 2b54e30

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

test/EasyPost/BetaReferralCustomerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class BetaReferralCustomerTest extends \PHPUnit\Framework\TestCase
1515
public static function setUpBeforeClass(): void
1616
{
1717
TestUtil::setupVcrTests();
18-
$referralCustomerProdApiKey = getenv('REFERRAL_CUSTOMER_PROD_API_KEY') !== false
19-
? getenv('REFERRAL_CUSTOMER_PROD_API_KEY') : '123';
18+
$referralCustomerProdApiKey = (string)getenv('REFERRAL_CUSTOMER_PROD_API_KEY') !== false
19+
? (string)getenv('REFERRAL_CUSTOMER_PROD_API_KEY') : '123';
2020
self::$client = new EasyPostClient($referralCustomerProdApiKey);
2121
}
2222

test/EasyPost/Fixture.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public static function pageSize(): int
2424
public static function uspsCarrierAccountId(): string
2525
{
2626
// Fallback to the EasyPost PHP Client Library Test User USPS carrier account ID due to strict matching
27-
$uspsCarrierAccountId = getenv('USPS_CARRIER_ACCOUNT_ID') !== false
28-
? getenv('USPS_CARRIER_ACCOUNT_ID') : 'ca_8dc116debcdb49b5a66a2ddee4612600';
27+
$uspsCarrierAccountId = (string)getenv('USPS_CARRIER_ACCOUNT_ID') !== false
28+
? (string)getenv('USPS_CARRIER_ACCOUNT_ID') : 'ca_8dc116debcdb49b5a66a2ddee4612600';
2929

3030
return $uspsCarrierAccountId;
3131
}

test/EasyPost/ReferralCustomerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ class ReferralCustomerTest extends \PHPUnit\Framework\TestCase
1919
public static function setUpBeforeClass(): void
2020
{
2121
TestUtil::setupVcrTests();
22-
$partnerUserProdApiKey = getenv('PARTNER_USER_PROD_API_KEY') !== false
23-
? getenv('PARTNER_USER_PROD_API_KEY') : '123';
22+
$partnerUserProdApiKey = (string)getenv('PARTNER_USER_PROD_API_KEY') !== false
23+
? (string)getenv('PARTNER_USER_PROD_API_KEY') : '123';
2424
self::$client = new EasyPostClient($partnerUserProdApiKey);
25-
self::$referralUserProdApiKey = getenv('REFERRAL_CUSTOMER_PROD_API_KEY') !== false
26-
? getenv('REFERRAL_CUSTOMER_PROD_API_KEY') : '123';
25+
self::$referralUserProdApiKey = (string)getenv('REFERRAL_CUSTOMER_PROD_API_KEY') !== false
26+
? (string)getenv('REFERRAL_CUSTOMER_PROD_API_KEY') : '123';
2727
}
2828

2929
/**

0 commit comments

Comments
 (0)