Skip to content

fatal error on $this->_userType = $result->result->userType on tropo.class.php #47

@adsherpa

Description

@adsherpa

Looks like on php 5.4 and above line $this->_userType = $result->result->userType; throws fatal error because $result->result->userType is not set at the time it is being assign to _userType and variable does not exist, this causes to stop application from continuing to respond with next statement.

I had to patch this library with below to make it work.
$this->_userType = isset($result->result->userType)?$result->result->userType : null;
I would like to see if you have new updates to this repo that will work with latest php version and also apply check for variables check to make sure they are defined and initialized for those that are required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions