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

Fix for ViewModel __unset #2148

Merged
merged 3 commits into from Aug 15, 2012

Conversation

pdobrigkeit
Copy link
Contributor

No description provided.

@travisbot
Copy link

This pull request fails (merged a39df14 into 22808d1).

@@ -147,6 +147,8 @@ public function __unset($name)

$variables = $this->getVariables();
unset($variables[$name]);

$this->setVariables($variables, true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be much better adding a new method "unsetVariable" or "removeVariable" directly removing the variable on "$this->variables" instead of copy the entire array over 2 methods for each unset

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine with me, will change the fix accordingly.

@travisbot
Copy link

This pull request passes (merged 45a2f27 into 22808d1).

@weierophinney weierophinney merged commit 45a2f27 into zendframework:master Aug 15, 2012
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.

None yet

4 participants