We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b91c1f commit 97bd54bCopy full SHA for 97bd54b
2 files changed
lib/cli/Arguments.php
@@ -484,12 +484,15 @@ private function _parseOption($option) {
484
$values = array();
485
486
// Loop until we find a flag in peak-ahead
487
- foreach ($this->_lexer as $value) {
488
- array_push($values, $value->raw);
+ while ( $this->_lexer->valid() ) {
+ $value = $this->_lexer->current();
489
+ array_push( $values, $value->raw );
490
- if (!$this->_lexer->end() && !$this->_lexer->peek->isValue) {
491
+ // @phpstan-ignore-next-line
492
+ if ( ! $this->_lexer->end() && ! $this->_lexer->peek->isValue ) {
493
break;
494
}
495
+ $this->_lexer->next();
496
497
498
$this[$option->key] = join(' ', $values);
phpstan.neon.dist
@@ -1,5 +1,5 @@
1
parameters:
2
- level: 3
+ level: 4
3
paths:
4
- lib
5
scanDirectories:
0 commit comments