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

Provide negative unit-test for Issue #81 #102

Merged
merged 2 commits into from
Jan 31, 2018
Merged

Provide negative unit-test for Issue #81 #102

merged 2 commits into from
Jan 31, 2018

Conversation

MatthiasKuehneEllerhold
Copy link
Contributor

Creates a testcase for retrieving a value of a non-existing key from the AbstractContainer.

This worked in 2.7.x, but fails on 2.8.0.

… Abstract-Container. Worked in 2.7.x, fails on 2.8.0
This patch adds a new private member, `$defaultValue`, to the
`AbstractContainer`. `offsetGet()` now returns that member in the case
that the provided `$key` is not a valid offset. This resolves the issue
of returning a _reference_.
@weierophinney
Copy link
Member

@MatthiasKuehneEllerhold I've pushed a fix to your branch; if Travis goes green, I'll merge for an immediate release.

Thanks for your patience!

@weierophinney weierophinney merged commit 6c22d1d into zendframework:master Jan 31, 2018
weierophinney added a commit that referenced this pull request Jan 31, 2018
weierophinney added a commit that referenced this pull request Jan 31, 2018
weierophinney added a commit that referenced this pull request Jan 31, 2018
Forward port #102

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

Successfully merging this pull request may close these issues.

2 participants