crossbrowsertesting/API-Sample-Scripts

Running livetests/cbt_api_livetests.php - Creating default object from empty value

Closed this issue · 3 comments

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

@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?

Fantastic. Glad to hear it!