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

Undefined index: nameStreet #30

Closed
vzikmund opened this issue Mar 7, 2023 · 6 comments
Closed

Undefined index: nameStreet #30

vzikmund opened this issue Mar 7, 2023 · 6 comments

Comments

@vzikmund
Copy link

vzikmund commented Mar 7, 2023

Hello,
in ZasilkovnaBranch::__construct() you are trying to access value by key nameStreet.

$this->nameStreet = $data['nameStreet'];

However the API is not returning key nameStreet but key street.

image

@Salamek Salamek closed this as completed in 15b7d66 Mar 7, 2023
@Salamek
Copy link
Owner

Salamek commented Mar 7, 2023

Hi, please check master branch if everything is ok and let me know... i will do proper release after

@Salamek
Copy link
Owner

Salamek commented Mar 8, 2023

@vzikmund ping

@vzikmund
Copy link
Author

vzikmund commented Mar 8, 2023

Thanks for the reminder 🙏

The update triggered another error. In case there isn't specified parameter 'status_id', undefined index is thrown. I think the problem is that you are trying cast non existing $status['statusId'] to int. There should be smth to check the existence of that key before cast is called.

image

@Salamek
Copy link
Owner

Salamek commented Mar 8, 2023

@vzikmund ok, that should be fixed in master

@vzikmund
Copy link
Author

vzikmund commented Mar 8, 2023

Perfect 👍 Now everything seems to be working smoothly.

@Salamek
Copy link
Owner

Salamek commented Mar 8, 2023

Great, released in 3.2

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

2 participants