Describe the bug
PHP shows warning PHP Warning: Trying to access array offset on value of type null in ../vendor/salesforce-mc/fuel-sdk-php/src/ET_Client.php on line 645 when assigning ET_Client to ET_Subscriber->authStub. This is flooding our logs and making a lot of unnecessary notification about the warnings. Doe not actually stop the functionality, it's just the warning.
To Reproduce
Create new ET_Subscriber
Authenticate create new ET_Client (as well as all of the authentication for ET_Client)
Assign ET_Client to ET_Subscribers::authStub
Warning is displayed
Expected behavior
I should not see the warning.
Screenshots
Code snippet
$this->Subscriber = $ETSubscriber ?? FrontController::container()->get( ET_Subscriber::class );
$this->Subscriber->authStub = $Client ?? FrontController::container()->get( ET_Client::class ); // First you need to authenticate the ET Client (just passing credentials to constructor)
Environment
SDK Version: 1.4.0
PHP version: 8.0.28
The bug has the severity
[ ] Critical: The defect affects critical functionality or critical data. It does not have a workaround.
[ ] Major: The defect affects major functionality or major data. It has a workaround but is not obvious and is difficult.
[ ] Minor: The defect affects minor functionality or non-critical data. It has an easy workaround.
[X] Trivial: The defect does not affect functionality or data. It does not even need a workaround. It does not impact productivity or efficiency. It is merely an inconvenience.
Additional context
Add any other context about the problem here.
Describe the bug PHP shows warning
PHP Warning: Trying to access array offset on value of type null in ../vendor/salesforce-mc/fuel-sdk-php/src/ET_Client.php on line 645
when assigningET_Client
toET_Subscriber->authStub
. This is flooding our logs and making a lot of unnecessary notification about the warnings. Doe not actually stop the functionality, it's just the warning.To Reproduce
ET_Subscriber
ET_Client
(as well as all of the authentication for ET_Client)Expected behavior I should not see the warning.
Screenshots
Code snippet
Environment
The bug has the severity
Additional context Add any other context about the problem here.