Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Fix error when accessing a single attribute before any have been added. #9

Merged
merged 1 commit into from
May 22, 2015

Conversation

dolfelt
Copy link
Contributor

@dolfelt dolfelt commented May 22, 2015

When using getAttribute before withAttribute has been called the following error happens:

array_key_exists() expects parameter 2 to be array, null given

This fix makes sure the array is initialized in the ServerRequest class. I'm open to other suggestions for solving this issue.

cc: @weierophinney

@Maks3w Maks3w added the bug label May 22, 2015
@Ocramius Ocramius self-assigned this May 22, 2015
@Ocramius Ocramius added this to the 1.0.1 milestone May 22, 2015
Ocramius added a commit that referenced this pull request May 22, 2015
@Ocramius Ocramius merged commit 611386c into zendframework:master May 22, 2015
Ocramius added a commit that referenced this pull request May 22, 2015
@Ocramius
Copy link
Member

👍 thanks!

master: 15d8b84
develop: dd3ec9c

@dolfelt dolfelt deleted the fix-attributes branch May 22, 2015 18:02
@dolfelt
Copy link
Contributor Author

dolfelt commented May 22, 2015

Awesome! Nice, quick turn around.

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

Successfully merging this pull request may close these issues.

3 participants