bunq / sdk_php

PHP SDK for bunq API
MIT License
84 stars 54 forks source link

Error in api context script #36

Closed JvanHengel closed 7 years ago

JvanHengel commented 7 years ago

description

The scripts used to create an API context throw errors after inserting the API-key. Error:

"Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in /my/project/path/vendor/bunq/sdk_php/src/Model/BunqModel.php on line 180"

How to reproduce

OGKevin commented 7 years ago

@JvanHengel what version of PHP are you using ?

JvanHengel commented 7 years ago

PHP 5.6.31

JvanHengel commented 7 years ago

Fixed by updating to PHP 7.1.8

OGKevin commented 7 years ago

Ah that is nice to hear @JvanHengel 💪 , but reopening this issue as of api_context_save_example.php should work on php 5.6. Could not reproduce on 7.1thought. Will setup a local env with 5.6 and try to reproduce.

OGKevin commented 7 years ago

Managed to reproduce this issue, it is indeed related to php5.6 looking for a fix.