Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for Twig 2 #6

Open
marcosimbuerger opened this issue Jul 22, 2020 · 0 comments
Open

Update for Twig 2 #6

marcosimbuerger opened this issue Jul 22, 2020 · 0 comments
Assignees

Comments

@marcosimbuerger
Copy link

marcosimbuerger commented Jul 22, 2020

Deprecations / Errors:

------ ----------------------------------------------------------------------------------------------------------- 
Line   vendor/namics/twig-nitro-library/src/Config/ConfigReader.php                                               
------ ----------------------------------------------------------------------------------------------------------- 
24     Property Deniaz\Terrific\Config\ConfigReader::$config (array) does not accept default value of type null.  
------ ----------------------------------------------------------------------------------------------------------- 

------ ---------------------------------------------------------------------------------------------------- 
Line   vendor/namics/twig-nitro-library/src/Provider/ContextProviderInterface.php                          
------ ---------------------------------------------------------------------------------------------------- 
34     PHPDoc tag @param has invalid value ($only): Unexpected token "$only", expected type at offset 213  
------ ---------------------------------------------------------------------------------------------------- 

------ --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Line   vendor/namics/twig-nitro-library/src/Twig/Extension/TerrificExtension.php                                                                                                        
------ --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
21     Property Deniaz\Terrific\Twig\Extension\TerrificExtension::$ctxProvider has unknown class Deniaz\Terrific\Provider\ContextProviderInterfaceContextVariableProvider as its type.  
       💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                                                                               
31     Property Deniaz\Terrific\Twig\Extension\TerrificExtension::$ctxProvider (Deniaz\Terrific\Provider\ContextProviderInterfaceContextVariableProvider) does not accept               
       Deniaz\Terrific\Provider\ContextProviderInterface.                                                                                                                               
46     Parameter #1 $ctxProvider of class Deniaz\Terrific\Twig\TokenParser\ComponentTokenParser constructor expects Deniaz\Terrific\Provider\ContextProviderInterface,                  
       Deniaz\Terrific\Provider\ContextProviderInterfaceContextVariableProvider given.                                                                                                  
------ --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 

------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 
Line   vendor/namics/twig-nitro-library/src/Twig/Node/ComponentNode.php                                                                                                        
------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 
30     Property Deniaz\Terrific\Twig\Node\ComponentNode::$ctxProvider has unknown class Deniaz\Terrific\Provider\ContextProviderInterfaceContextVariableProvider as its type.  
       💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                                                                      
40     PHPDoc tag @var has invalid value (|Deniaz\Terrific\Twig\Utility\ExpressionHandler): Unexpected token "|", expected type at offset 126                                  
72     Property Deniaz\Terrific\Twig\Node\ComponentNode::$ctxProvider (Deniaz\Terrific\Provider\ContextProviderInterfaceContextVariableProvider) does not accept               
       Deniaz\Terrific\Provider\ContextProviderInterface.                                                                                                                      
106    Call to deprecated method addIndentation() of class Twig\Compiler:                                                                                                      
       since 1.27 (to be removed in 2.0).                                                                                                                                      
111    Call to method compile() on an unknown class Deniaz\Terrific\Provider\ContextProviderInterfaceContextVariableProvider.                                                  
       💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                                                                      
136    Call to deprecated method getFilename() of class Twig\Compiler:                                                                                                         
       since 1.25 (to be removed in 2.0)                                                                                                                                       
138    Call to deprecated method getLine() of class Twig\Node\Node:                                                                                                            
       since 1.27 (to be removed in 2.0)                                                                                                                                       
190    Call to an undefined method Deniaz\Terrific\Twig\Node\ComponentNode::buildGetAttrExpressionArrayKeys().                                                                 
------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 

------ ---------------------------------------------------------------------------------------------------------------------------------------- 
Line   vendor/namics/twig-nitro-library/src/Twig/TerrificCompiler.php                                                                          
------ ---------------------------------------------------------------------------------------------------------------------------------------- 
34     PHPDoc tag @var has invalid value (|Deniaz\Terrific\Twig\Utility\ExpressionHandler): Unexpected token "|", expected type at offset 126  
151    Call to deprecated method addIndentation() of class Twig\Compiler:                                                                      
       since 1.27 (to be removed in 2.0).                                                                                                      
158    Call to deprecated method addIndentation() of class Twig\Compiler:                                                                      
       since 1.27 (to be removed in 2.0).                                                                                                      
158    Call to deprecated method addIndentation() of class Twig\Compiler:                                                                      
       since 1.27 (to be removed in 2.0).                                                                                                      
166    Call to deprecated method addIndentation() of class Twig\Compiler:                                                                      
       since 1.27 (to be removed in 2.0).                                                                                                      
166    Call to deprecated method addIndentation() of class Twig\Compiler:                                                                      
       since 1.27 (to be removed in 2.0).                                                                                                      
166    Call to deprecated method addIndentation() of class Twig\Compiler:                                                                      
       since 1.27 (to be removed in 2.0).                                                                                                      
166    Call to deprecated method addIndentation() of class Twig\Compiler:                                                                      
       since 1.27 (to be removed in 2.0).                                                                                                      
------ ---------------------------------------------------------------------------------------------------------------------------------------- 

------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Line   vendor/namics/twig-nitro-library/src/Twig/TokenParser/ComponentTokenParser.php                                                                                                        
------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
23     Property Deniaz\Terrific\Twig\TokenParser\ComponentTokenParser::$ctxProvider has unknown class Deniaz\Terrific\Provider\ContextProviderInterfaceContextVariableProvider as its type.  
       💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                                                                                                    
32     Property Deniaz\Terrific\Twig\TokenParser\ComponentTokenParser::$ctxProvider (Deniaz\Terrific\Provider\ContextProviderInterfaceContextVariableProvider) does not accept               
       Deniaz\Terrific\Provider\ContextProviderInterface.                                                                                                                                    
38     Return type of method Deniaz\Terrific\Twig\TokenParser\ComponentTokenParser::parse() has typehint with deprecated interface Twig_NodeInterface:                                       
       since 1.12 (to be removed in 3.0)                                                                                                                                                     
42     Parameter #2 $ctxProvider of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects Deniaz\Terrific\Provider\ContextProviderInterface,                                     
       Deniaz\Terrific\Provider\ContextProviderInterfaceContextVariableProvider given.                                                                                                       
------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 

------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Line   vendor/namics/twig-nitro-library/src/Twig/Utility/ExpressionHandler.php                                                                                                                     
------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
65     Parameter #1 $expression of method Deniaz\Terrific\Twig\Utility\ExpressionHandler::buildGetAttrExpressionArrayKeys() expects Twig\Node\Expression\GetAttrExpression, Twig\Node\Node given.  
------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 

------ ------------------------------------------------------------------------------------------------------------------------------------------------------------ 
Line   vendor/namics/twig-nitro-library/test/Twig/Extension/TerrificExtensionTest.php                                                                              
------ ------------------------------------------------------------------------------------------------------------------------------------------------------------ 
19     Parameter #1 $ctxProvider of class Deniaz\Terrific\Twig\Extension\TerrificExtension constructor expects Deniaz\Terrific\Provider\ContextProviderInterface,  
       PHPUnit\Framework\MockObject\MockObject given.                                                                                                              
30     Parameter #1 $ctxProvider of class Deniaz\Terrific\Twig\Extension\TerrificExtension constructor expects Deniaz\Terrific\Provider\ContextProviderInterface,  
       PHPUnit\Framework\MockObject\MockObject given.                                                                                                              
------ ------------------------------------------------------------------------------------------------------------------------------------------------------------ 

------ -------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Line   vendor/namics/twig-nitro-library/test/Twig/Loader/TerrificLoaderTest.php                                                                                      
------ -------------------------------------------------------------------------------------------------------------------------------------------------------------- 
35     Parameter #1 $locator of class Deniaz\Terrific\Twig\Loader\TerrificLoader constructor expects Deniaz\Terrific\Provider\TemplateInformationProviderInterface,  
       PHPUnit\Framework\MockObject\MockObject given.                                                                                                                
------ -------------------------------------------------------------------------------------------------------------------------------------------------------------- 

------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Line   vendor/namics/twig-nitro-library/test/Twig/Node/ComponentTestNode.php                                                                                                                          
------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
19     Class Deniaz\Terrific\Twig\Node\ComponentNode constructor invoked with 4 parameters, 5-6 required.                                                                                             
19     Parameter #2 $ctxProvider of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects Deniaz\Terrific\Provider\ContextProviderInterface, null given.                                  
19     Parameter #3 $data of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects Twig\Node\Node|null, false given.                                                                      
19     Parameter #4 $only of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects bool, int given.                                                                                       
29     Class Deniaz\Terrific\Twig\Node\ComponentNode constructor invoked with 4 parameters, 5-6 required.                                                                                             
29     Parameter #2 $ctxProvider of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects Deniaz\Terrific\Provider\ContextProviderInterface, Twig\Node\Expression\ArrayExpression given.  
29     Parameter #3 $data of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects Twig\Node\Node|null, true given.                                                                       
29     Parameter #4 $only of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects bool, int given.                                                                                       
58     Class Deniaz\Terrific\Twig\Node\ComponentNode constructor invoked with 4 parameters, 5-6 required.                                                                                             
58     Parameter #2 $ctxProvider of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects Deniaz\Terrific\Provider\ContextProviderInterface, null given.                                  
58     Parameter #3 $data of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects Twig\Node\Node|null, false given.                                                                      
58     Parameter #4 $only of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects bool, int given.                                                                                       
76     Class Deniaz\Terrific\Twig\Node\ComponentNode constructor invoked with 4 parameters, 5-6 required.                                                                                             
76     Parameter #2 $ctxProvider of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects Deniaz\Terrific\Provider\ContextProviderInterface, null given.                                  
76     Parameter #3 $data of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects Twig\Node\Node|null, true given.                                                                       
76     Parameter #4 $only of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects bool, int given.                                                                                       
98     Class Deniaz\Terrific\Twig\Node\ComponentNode constructor invoked with 4 parameters, 5-6 required.                                                                                             
98     Parameter #2 $ctxProvider of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects Deniaz\Terrific\Provider\ContextProviderInterface, Twig\Node\Expression\ArrayExpression given.  
98     Parameter #3 $data of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects Twig\Node\Node|null, false given.                                                                      
98     Parameter #4 $only of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects bool, int given.                                                                                       
120    Class Deniaz\Terrific\Twig\Node\ComponentNode constructor invoked with 4 parameters, 5-6 required.                                                                                             
120    Parameter #2 $ctxProvider of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects Deniaz\Terrific\Provider\ContextProviderInterface, Twig\Node\Expression\ArrayExpression given.  
120    Parameter #3 $data of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects Twig\Node\Node|null, true given.                                                                       
120    Parameter #4 $only of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects bool, int given.                                                                                       
139    Class Deniaz\Terrific\Twig\Node\ComponentNode constructor invoked with 4 parameters, 5-6 required.                                                                                             
139    Parameter #2 $ctxProvider of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects Deniaz\Terrific\Provider\ContextProviderInterface, Twig\Node\Expression\ConstantExpression      
       given.                                                                                                                                                                                         
139    Parameter #3 $data of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects Twig\Node\Node|null, false given.                                                                      
139    Parameter #4 $only of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects bool, int given.                                                                                       
158    Class Deniaz\Terrific\Twig\Node\ComponentNode constructor invoked with 4 parameters, 5-6 required.                                                                                             
158    Parameter #2 $ctxProvider of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects Deniaz\Terrific\Provider\ContextProviderInterface, Twig\Node\Expression\ConstantExpression      
       given.                                                                                                                                                                                         
158    Parameter #3 $data of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects Twig\Node\Node|null, true given.                                                                       
158    Parameter #4 $only of class Deniaz\Terrific\Twig\Node\ComponentNode constructor expects bool, int given.                                                                                       
------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 

------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Line   vendor/namics/twig-nitro-library/test/Twig/TokenParser/ComponentTokenParserTest.php                                                                              
------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------- 
20     Parameter #1 $ctxProvider of class Deniaz\Terrific\Twig\TokenParser\ComponentTokenParser constructor expects Deniaz\Terrific\Provider\ContextProviderInterface,  
       PHPUnit\Framework\MockObject\MockObject given.                                                                                                                   
------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------
@marcosimbuerger marcosimbuerger self-assigned this Jul 22, 2020
@marcosimbuerger marcosimbuerger linked a pull request Jul 23, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant