Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v6.1.0 - Undefined Index: "class" in Helper/Caster/JSON.php #47

Open
seanhostdime opened this issue Aug 16, 2019 · 0 comments
Open

v6.1.0 - Undefined Index: "class" in Helper/Caster/JSON.php #47

seanhostdime opened this issue Aug 16, 2019 · 0 comments

Comments

@seanhostdime
Copy link

seanhostdime commented Aug 16, 2019

I tried to use the new v6.1.0 release in our development branch and I'm getting the following exception from within the package:

"Undefined index: class" : OnApp-PHP-Wrapper-External/Helper/Caster/JSON.php : Line 149

The code attempted to access $this->map["resize_without_reboot_policy"]["class"].
Using a debugger, I find that map is only defined as the following

     ▾ $this->map["resize_without_reboot_policy"] = (array [2])
      \
       ⬦ $this->map["resize_without_reboot_policy"]["map"] = (string [29]) `_resize_without_reboot_policy`
       |
       ⬦ $this->map["resize_without_reboot_policy"]["type"] = (string [5]) `array`

Can you adjust your api to return the missing data? Or can the PHP wrapper be adjusted to conditionally set this field? For our needs, we can skip setting this field if it does not exist.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant