File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 3636use Rector \Php81 \Rector \FuncCall \NullToStrictStringFuncCallArgRector ;
3737use Rector \PHPUnit \CodeQuality \Rector \Class_ \RemoveDataProviderParamKeysRector ;
3838use Rector \PHPUnit \CodeQuality \Rector \Class_ \YieldDataProviderRector ;
39+ use Rector \PHPUnit \CodeQuality \Rector \FuncCall \AssertFuncCallToPHPUnitAssertRector ;
3940use Rector \Privatization \Rector \Property \PrivatizeFinalClassPropertyRector ;
4041use Rector \Strict \Rector \Empty_ \DisallowedEmptyRuleFixerRector ;
4142use Rector \TypeDeclaration \Rector \ArrowFunction \AddArrowFunctionReturnTypeRector ;
172173
173174 // needs separate PR for activation to allow more depth review
174175 FunctionLikeToFirstClassCallableRector::class,
176+
177+ AssertFuncCallToPHPUnitAssertRector::class => [
178+ // use $this inside static closure
179+ __DIR__ . '/tests/system/AutoReview/FrameworkCodeTest.php ' ,
180+ ],
175181 ])
176182 // auto import fully qualified class names
177183 ->withImportNames (removeUnusedImports: true )
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public function testEachTestClassHasCorrectGroupAttributeName(string $class): vo
6262 $ unrecognizedGroups = array_diff (
6363 array_map (static function (ReflectionAttribute $ attribute ): string {
6464 $ groupAttribute = $ attribute ->newInstance ();
65- $ this -> assertInstanceOf (Group::class, $ groupAttribute );
65+ assert ( $ groupAttribute instanceof Group );
6666
6767 return $ groupAttribute ->name ();
6868 }, $ attributes ),
You can’t perform that action at this time.
0 commit comments