src/Carbon/CarbonPeriod.php
public function next()
    {
        if ($this->current === null) {
            $this->rewind();
        }

        if ($this->validationResult !== static::END_ITERATION) {
            $this->key++;

            $this->incrementCurrentDateUntilValid();
        }
    }
public function next()
    {
        if ($this->current === null) {
            $this->rewind();
        }

        if ($this->validationResult !== static::END_ITERATION) {
            $this->key++;

            $this->incrementCurrentDateUntilValid();
        }
    }
public function next ( ) { if ( $ this -> current === null ) { $ this -> rewind ( ) ; } if ( $ this -> validationResult !== static :: END_ITERATION ) { $ this -> key ++ ; $ this -> incrementCurrentDateUntilValid ( ) ; } }
Move forward to the next date.

@throws \RuntimeException

@return void
Move forward to the next date .