1
0
Fork 0

Merge pull request #192 from biozshock/master

After mesage "Installing dependencies" composer dies silently.
pull/199/merge
Jordi Boggiano 2012-01-09 00:49:46 -08:00
commit 3d52798c0f
2 changed files with 3 additions and 2 deletions

View File

@ -55,7 +55,7 @@ class RuleSet implements \IteratorAggregate, \Countable
public function add(Rule $rule, $type)
{
if (!isset(self::$types[$type])) {
throw OutOfBoundsException('Unknown rule type: ' . $type);
throw new \OutOfBoundsException('Unknown rule type: ' . $type);
}
if (!isset($this->rules[$type])) {

View File

@ -88,6 +88,7 @@ class RuleSetIterator implements \Iterator
public function valid()
{
return isset($this->rules[$this->currentType][$this->currentOffset]);
return isset($this->rules[$this->currentType])
&& isset($this->rules[$this->currentType][$this->currentOffset]);
}
}