PHP SDK error if(isset()) error

Comments

4 comments

  • Official comment
    Support

    Hi Tarka! This issue has been fixed. Please help us confirm this. Thanks for reporting!

    Comment actions Permalink
  • Tarka L'Herpiniere

    Yes I can confirm that the above is fixed in the latest version. I'm not a PHP expert but I just noticed that the InvalidArgumentException is prefixed by a \.

    throw new \InvalidArgumentException("One or more required arguments were NULL.");

    0
    Comment actions Permalink
  • Support

    Hi Tarka,

    This \ prefix is actually by design. It enforces PHP to locate the exception class in the root namespace. This way we avoid conflicts between model names and system defined exceptions. I hope we have been helpful :)

    Regards,
    Zeeshan

    0
    Comment actions Permalink
  • Tarka L'Herpiniere

    Thanks for your quick support.

    0
    Comment actions Permalink

Please sign in to leave a comment.