Limenius / ReactRenderer

Client and Server-side React rendering from PHP
MIT License
238 stars 37 forks source link

PHPCS/Composer: update PHPCompatibility #36

Closed jrfnl closed 4 years ago

jrfnl commented 4 years ago

Composer:

PHPCS ruleset:

Refs:

Additional suggestions:

jrfnl commented 4 years ago

Note: PHPCompatibility 10.0.0 will be released in the near future and contains quite some code checks related to PHP8.

Some preliminary scan results to be aware of:

FILE: src\Limenius\ReactRenderer\Renderer\AbstractReactRenderer.php                          
------------------------------------------------------------------------------------------   
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES                                              
------------------------------------------------------------------------------------------   
 33 | WARNING | Declaring a required parameter after an optional one is deprecated since     
    |         | PHP 8.0. Parameter $registeredStores is optional, while parameter $trace     
    |         | is required.                                                                 
 91 | WARNING | Declaring a required parameter after an optional one is deprecated since     
    |         | PHP 8.0. Parameter $registeredStores is optional, while parameter $trace     
    |         | is required.                                                                 
------------------------------------------------------------------------------------------   

FILE: src\Limenius\ReactRenderer\Renderer\ExternalServerReactRenderer.php                    
------------------------------------------------------------------------------------------   
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES                                              
------------------------------------------------------------------------------------------   
 31 | WARNING | Declaring a required parameter after an optional one is deprecated since     
    |         | PHP 8.0. Parameter $failLoud is optional, while parameter                    
    |         | $contextProvider is required.                                                
 56 | WARNING | Declaring a required parameter after an optional one is deprecated since     
    |         | PHP 8.0. Parameter $registeredStores is optional, while parameter $trace     
    |         | is required.                                                                 
------------------------------------------------------------------------------------------   

FILE: src\Limenius\ReactRenderer\Renderer\PhpExecJsReactRenderer.php                         
------------------------------------------------------------------------------------------   
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES                                              
------------------------------------------------------------------------------------------   
 53 | WARNING | Declaring a required parameter after an optional one is deprecated since     
    |         | PHP 8.0. Parameter $failLoud is optional, while parameter                    
    |         | $contextProvider is required.                                                
 94 | WARNING | Declaring a required parameter after an optional one is deprecated since     
    |         | PHP 8.0. Parameter $registeredStores is optional, while parameter $trace     
    |         | is required.                                                                 
------------------------------------------------------------------------------------------   
nacmartin commented 4 years ago

Ah thanks! Long overdue, merged. Taking care of the optional parameters problem in a separate PR.

jrfnl commented 4 years ago

You're welcome.