composer update
This commit is contained in:
		
							
								
								
									
										18
									
								
								vendor/psy/psysh/src/Shell.php
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								vendor/psy/psysh/src/Shell.php
									
									
									
									
										vendored
									
									
								
							| @@ -47,7 +47,7 @@ use Symfony\Component\Console\Output\OutputInterface; | ||||
|  */ | ||||
| class Shell extends Application | ||||
| { | ||||
|     const VERSION = 'v0.9.8'; | ||||
|     const VERSION = 'v0.9.9'; | ||||
|  | ||||
|     const PROMPT      = '>>> '; | ||||
|     const BUFF_PROMPT = '... '; | ||||
| @@ -73,6 +73,7 @@ class Shell extends Application | ||||
|     private $autoCompleter; | ||||
|     private $matchers = []; | ||||
|     private $commandsMatcher; | ||||
|     private $lastExecSuccess = true; | ||||
|  | ||||
|     /** | ||||
|      * Create a new Psy Shell. | ||||
| @@ -963,6 +964,8 @@ class Shell extends Application | ||||
|      */ | ||||
|     public function writeReturnValue($ret) | ||||
|     { | ||||
|         $this->lastExecSuccess = true; | ||||
|  | ||||
|         if ($ret instanceof NoReturnValue) { | ||||
|             return; | ||||
|         } | ||||
| @@ -986,11 +989,24 @@ class Shell extends Application | ||||
|      */ | ||||
|     public function writeException(\Exception $e) | ||||
|     { | ||||
|         $this->lastExecSuccess = false; | ||||
|         $this->context->setLastException($e); | ||||
|         $this->output->writeln($this->formatException($e)); | ||||
|         $this->resetCodeBuffer(); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Check whether the last exec was successful. | ||||
|      * | ||||
|      * Returns true if a return value was logged rather than an exception. | ||||
|      * | ||||
|      * @return bool | ||||
|      */ | ||||
|     public function getLastExecSuccess() | ||||
|     { | ||||
|         return $this->lastExecSuccess; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Helper for formatting an exception for writeException(). | ||||
|      * | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Manish Verma
					Manish Verma