File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242use Rector \Php71 \Rector \FuncCall \CountOnNullRector ;
4343use Rector \Php73 \Rector \FuncCall \JsonThrowOnErrorRector ;
4444use Rector \Php73 \Rector \FuncCall \StringifyStrNeedlesRector ;
45+ use Rector \PHPUnit \Rector \MethodCall \AssertIssetToSpecificMethodRector ;
4546use Rector \PHPUnit \Set \PHPUnitSetList ;
4647use Rector \Set \ValueObject \LevelSetList ;
4748use Rector \Set \ValueObject \SetList ;
111112
112113 // use mt_rand instead of random_int on purpose on non-cryptographically random
113114 RandomFunctionRector::class,
115+
116+ // $this->assertTrue(isset($bar['foo']))
117+ // and $this->assertArrayHasKey('foo', $bar)
118+ // or $this->assertObjectHasAttribute('foo', $bar);
119+ // are not the same
120+ AssertIssetToSpecificMethodRector::class => [
121+ __DIR__ . '/tests/system/Entity/EntityTest.php ' ,
122+ __DIR__ . '/tests/system/Session/SessionTest.php ' ,
123+ ],
114124 ]);
115125
116126 // auto import fully qualified class names
You can’t perform that action at this time.
0 commit comments