src/Session.php
public function toNextFlash() {
		if (!$this->started) {
			return $this;
		}

		$_SESSION[$this->flashSessionKey] =
			isset($_SESSION[$this->nextFlashSessionKey])
			? $_SESSION[$this->nextFlashSessionKey]
			: [];
		$_SESSION[$this->nextFlashSessionKey] = [];

		return $this;
	}
public function toNextFlash() {
		if (!$this->started) {
			return $this;
		}

		$_SESSION[$this->flashSessionKey] =
			isset($_SESSION[$this->nextFlashSessionKey])
			? $_SESSION[$this->nextFlashSessionKey]
			: [];
		$_SESSION[$this->nextFlashSessionKey] = [];

		return $this;
	}
public function toNextFlash ( ) { if ( ! $ this -> started ) { return $ this ; } $ _SESSION [ $ this -> flashSessionKey ] = isset ( $ _SESSION [ $ this -> nextFlashSessionKey ] ) ? $ _SESSION [ $ this -> nextFlashSessionKey ] : [ ] ; $ _SESSION [ $ this -> nextFlashSessionKey ] = [ ] ; return $ this ; }
Copy the next flash data to current flash. This should be done in the end of request.

@return self
Copy the next flash data to current flash . This should be done in the end of request .