Browse Source

Avoid a double call of current()

pull/76/head
Serafim 2 years ago
parent
commit
de036d5ccf
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      Llk/Parser.php

+ 4
- 2
Llk/Parser.php View File

@@ -324,8 +324,10 @@ class Parser
}
}

$namespace = $this->_tokenSequence->current()['namespace'];
$offset = $this->_tokenSequence->current()['offset'];
$current = $this->_tokenSequence->current();

$namespace = $current['namespace'];
$offset = $current['offset'];

$zzeRule = clone $zeRule;
$zzeRule->setValue($value);

Loading…
Cancel
Save