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

Commit

Permalink
Merge remote-tracking branch 'weierophinney/feature/error-suppression…
Browse files Browse the repository at this point in the history
…-removal'
  • Loading branch information
akrabat committed Jul 13, 2012
5 parents 6c759d8 + d2dd157 + 51b0320 + aabe1c0 + 8bc9348 commit 24f498b
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit 24f498b

Please sign in to comment.