Running livetests/cbt_api_livetests.php - Creating default object from empty value
Closed this issue · 3 comments
bartonhammond commented
PHP Stack trace:
PHP 1. {main}() /Users/barton/projects/wisnet/automate/scripts/livetest.php:0
PHP 2. LiveTest->startTest() /Users/barton/projects/wisnet/automate/scripts/livetest.php:184
PHP 3. LiveTest->callApi() /Users/barton/projects/wisnet/automate/scripts/livetest.php:36
adamtaylor13 commented
@bartonhammond Hey thanks for bringing this to our attention! I figured out what was going on, and I think we've fixed it by switching the default $apiResult from Null to a stdClass.
This didn't seem like it was a fatal error, but rather just a warning. Can you confirm: 1. That your script now works with the update? 2. It was just a warning, and not an actual error?
bartonhammond commented
Yes - initializing to $stdClass fixes it.
Thanks!
…On Tue, Nov 21, 2017 at 1:37 PM, Adam ***@***.***> wrote:
@bartonhammond <https://github.com/bartonhammond> Hey thanks for bringing
this to our attention! I figured out what was going on, and I think we've
fixed it by switching the default $apiResult from Null to a stdClass.
This didn't seem like it was a fatal error, but rather just a warning. Can
you confirm: 1. That your script now works with the update? 2. It was just
a warning, and not an actual error?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABORPPkiJdZWs_H7k0gxuoHWhXcUkeXJks5s4yZ7gaJpZM4QmO3S>
.
adamtaylor13 commented
Fantastic. Glad to hear it!