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

Commit

Permalink
Merge branch 'master' of git://github.com/zendframework/zf2 into ZF2-377
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-mabe committed Jul 17, 2012
6 parents d2dd157 + 51b0320 + 24f498b + 6c759d8 + aabe1c0 + e76b67c commit 0ba91ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/AbstractContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use RecursiveIteratorIterator;
use Traversable;
use Zend\Stdlib\ArrayUtils;
use Zend\Stdlib\ErrorHandler;

/**
* Zend_Navigation_Container
Expand Down Expand Up @@ -348,7 +349,10 @@ public function findBy($property, $value, $all = false)
*/
public function __call($method, $arguments)
{
if (@preg_match('/(find(?:One|All)?By)(.+)/', $method, $match)) {
ErrorHandler::start(E_WARNING);
$result = preg_match('/(find(?:One|All)?By)(.+)/', $method, $match);
ErrorHandler::stop();
if ($result) {
return $this->{$match[1]}($match[2], $arguments[0]);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Page/AbstractPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ public function getCustomProperties()
*
* @return string a hash code value for this page
*/
public final function hashCode()
final public function hashCode()
{
return spl_object_hash($this);
}
Expand Down

0 comments on commit 0ba91ba

Please sign in to comment.