File tree Expand file tree Collapse file tree 7 files changed +22
-13
lines changed Expand file tree Collapse file tree 7 files changed +22
-13
lines changed Original file line number Diff line number Diff line change 4242        'no_unused_imports '  => true ,
4343        'align_multiline_comment '  => true ,
4444        'array_indentation '  => true ,
45+         'blank_line_after_opening_tag '  => false ,
4546        'header_comment '  => [
4647            'header '  => $ header
4748            'comment_type '  => 'PHPDoc ' ,
Original file line number Diff line number Diff line change 3434    }
3535  },
3636  "require-dev" : {
37-     "friendsofphp/php-cs-fixer" : " ^3.57" 
38-     "phpstan/phpstan" : " ^1.11" 
39-     "rector/rector" : " ^1.1" 
4037    "phpunit/phpunit" : " ^10.5" 
41-     "phpstan/phpstan-phpunit" : " ^1.3" 
42-     "phpstan/extension-installer" : " ^1.3" 
43-     "szepeviktor/phpstan-wordpress" : " ^1.3" 
44-     "roots/wordpress" : " ^6.5" 
38+     "phpstan/phpstan" : " ^2.0" 
39+     "rector/rector" : " ^2.0" 
40+     "friendsofphp/php-cs-fixer" : " ^3.69" 
41+     "phpstan/extension-installer" : " ^1.4" 
42+     "szepeviktor/phpstan-wordpress" : " ^2.0" 
43+     "phpstan/phpstan-phpunit" : " ^2.0" 
44+     "roots/wordpress" : " ^6.7" 
4545  },
4646  "config" : {
4747    "allow-plugins" : {
48-       "phpstan/extension -installer" : true ,
49-       "roots/wordpress-core -installer" : true 
48+       "roots/wordpress-core -installer" : true ,
49+       "phpstan/extension -installer" : true 
5050    }
5151  },
5252  "extra" : {
Original file line number Diff line number Diff line change 11parameters : 
22    level :  7 
3-     checkGenericClassInNonGenericObjectType :  false 
43    paths : 
54        - src 
5+     ignoreErrors : 
6+         - 
7+             identifier :  missingType.generics 
Original file line number Diff line number Diff line change 66 * Author: Dimitri BOUTEILLE <bonjour@dimitri-bouteille.fr> 
77 */ 
88
9- use  Rector \CodeQuality \Rector \Array_ \CallableThisArrayToAnonymousFunctionRector ;
109use  Rector \CodeQuality \Rector \Identical \SimplifyBoolIdenticalTrueRector ;
1110use  Rector \CodeQuality \Rector \If_ \SimplifyIfReturnBoolRector ;
1211use  Rector \Config \RectorConfig ;
3130    ])
3231    ->withSkip ([
3332        SimplifyBoolIdenticalTrueRector::class,
34-         CallableThisArrayToAnonymousFunctionRector::class,
3533        SimplifyIfReturnBoolRector::class,
3634    ]);
Original file line number Diff line number Diff line change @@ -44,7 +44,10 @@ public static function findClassName(?string $fileContent): ?string
4444
4545        $ namespacenull ;
4646        if  (preg_match ('#(^|\s)namespace(.*?)\s*;#sm ' , $ fileContent$ m
47+             // @phpstan-ignore-next-line 
4748            $ namespace$ m2 ] ?? null ;
49+ 
50+             // @phpstan-ignore-next-line 
4851            $ namespace$ namespacenull  ? trim ($ namespacenull ;
4952        }
5053
Original file line number Diff line number Diff line change @@ -151,7 +151,11 @@ public function register(): void
151151    protected  function  buildRouteArgs (Route $ routearray 
152152    {
153153        $ actions
154-         $ isDebug$ this options ?->debug ?? false ;
154+         $ isDebug$ this options ?->debug;
155+         if  ($ isDebugnull ) {
156+             $ isDebugfalse ;
157+         }
158+ 
155159        foreach  ($ routeactions  as  $ action
156160            $ actions
157161                'methods '  => $ actionmethods ,
Original file line number Diff line number Diff line change 1111$ includeDirectory__DIR__  . '/../web/wordpress/wp-includes ' ;
1212
1313$ paths
14+     '/load.php ' ,
1415    '/functions.php ' ,
1516    '/plugin.php ' ,
1617    '/class-wp-http-response.php ' ,
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You canβt perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments