File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -429,14 +429,7 @@ private function parseTypeAliasImportTagValue(TokenIterator $tokens): Ast\PhpDoc
429429		$ importedAlias$ tokenscurrentTokenValue ();
430430		$ tokensconsumeTokenType (Lexer::TOKEN_IDENTIFIER );
431431
432- 		if  (!$ tokenstryConsumeTokenValue ('from ' )) {
433- 			throw  new  ParserException (
434- 				$ tokenscurrentTokenValue (),
435- 				$ tokenscurrentTokenType (),
436- 				$ tokenscurrentTokenOffset (),
437- 				Lexer::TOKEN_IDENTIFIER 
438- 			);
439- 		}
432+ 		$ tokensconsumeTokenValue (Lexer::TOKEN_IDENTIFIER , 'from ' );
440433
441434		$ importedFrom$ tokenscurrentTokenValue ();
442435		$ tokensconsumeTokenType (Lexer::TOKEN_IDENTIFIER );
Original file line number Diff line number Diff line change @@ -3679,7 +3679,8 @@ public function provideTypeAliasImportTagsData(): Iterator
36793679							'*/ ' ,
36803680							Lexer::TOKEN_CLOSE_PHPDOC ,
36813681							35 ,
3682- 							Lexer::TOKEN_IDENTIFIER 
3682+ 							Lexer::TOKEN_IDENTIFIER ,
3683+ 							'from ' 
36833684						)
36843685					)
36853686				),
@@ -3698,7 +3699,8 @@ public function provideTypeAliasImportTagsData(): Iterator
36983699							'as ' ,
36993700							Lexer::TOKEN_IDENTIFIER ,
37003701							35 ,
3701- 							Lexer::TOKEN_IDENTIFIER 
3702+ 							Lexer::TOKEN_IDENTIFIER ,
3703+ 							'from ' 
37023704						)
37033705					)
37043706				),
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments