File tree 4 files changed +20
-24
lines changed
4 files changed +20
-24
lines changed Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
- use Rector \CodeQuality \Rector \Class_ \InlineConstructorDefaultToPropertyRector ;
6
5
use Rector \Config \RectorConfig ;
7
- use Rector \Set \ValueObject \LevelSetList ;
8
- use Rector \Set \ValueObject \SetList ;
6
+ use Rector \Php83 \Rector \ClassMethod \AddOverrideAttributeToOverriddenMethodsRector ;
9
7
10
- return static function ( RectorConfig $ rectorConfig ): void {
11
- $ rectorConfig -> paths ([
8
+ return RectorConfig:: configure ()
9
+ -> withPaths ([
12
10
__DIR__ .'/src ' ,
13
- ]);
14
-
15
- $ rectorConfig ->rules ([
16
- InlineConstructorDefaultToPropertyRector::class,
17
- ]);
18
-
19
- $ rectorConfig ->sets ([
20
- LevelSetList::UP_TO_PHP_83 ,
21
- SetList::CODE_QUALITY ,
22
- SetList::DEAD_CODE ,
23
- SetList::EARLY_RETURN ,
24
- SetList::TYPE_DECLARATION ,
25
- SetList::PRIVATIZATION ,
26
- ]);
27
- };
11
+ __DIR__ .'/tests ' ,
12
+ ])
13
+ ->withSkip ([
14
+ AddOverrideAttributeToOverriddenMethodsRector::class,
15
+ ])
16
+ ->withPreparedSets (
17
+ deadCode: true ,
18
+ codeQuality: true ,
19
+ typeDeclarations: true ,
20
+ privatization: true ,
21
+ earlyReturn: true ,
22
+ strictBooleans: true ,
23
+ )
24
+ ->withPhpSets (php83: true );
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
- it ('is true ' , function () {
5
+ it ('is true ' , function (): void {
6
6
expect (true )->toBeTrue ();
7
7
});
Original file line number Diff line number Diff line change @@ -13,9 +13,8 @@ class TestCase extends Orchestra
13
13
* Define environment setup.
14
14
*
15
15
* @param \Illuminate\Foundation\Application $app
16
- * @return void
17
16
*/
18
- public function getEnvironmentSetUp ($ app )
17
+ public function getEnvironmentSetUp ($ app ): void
19
18
{
20
19
//
21
20
}
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
- it ('is true ' , function () {
5
+ it ('is true ' , function (): void {
6
6
expect (true )->toBeTrue ();
7
7
});
You can’t perform that action at this time.
0 commit comments