1
0
Fork 0

Fix for composer. When running update/install command it's just do nothing, except writing "Installing dependencies"

pull/192/head
Artem Lopata (bumz) 2012-01-08 23:24:58 +02:00
parent 126c57d07c
commit de066de198
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) public function add(Rule $rule, $type)
{ {
if (!isset(self::$types[$type])) { if (!isset(self::$types[$type])) {
throw OutOfBoundsException('Unknown rule type: ' . $type); throw new \OutOfBoundsException('Unknown rule type: ' . $type);
} }
if (!isset($this->rules[$type])) { if (!isset($this->rules[$type])) {

View File

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