Fix for composer. When running update/install command it's just do nothing, except writing "Installing dependencies"
parent
126c57d07c
commit
de066de198
|
@ -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])) {
|
||||||
|
|
|
@ -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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue