File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 2424 Rector \PHPUnit \CodeQuality \Rector \Class_ \PreferPHPUnitSelfCallRector::class,
2525 ])
2626 ->withSkip ([
27+ Rector \PHPUnit \CodeQuality \Rector \MethodCall \AssertCountWithZeroToAssertEmptyRector::class, // sloppy
2728 Rector \PHPUnit \CodeQuality \Rector \Class_ \PreferPHPUnitThisCallRector::class, // breaks tests
28- Rector \PHPUnit \CodeQuality \Rector \Class_ \RemoveDataProviderParamKeysRector::class, // breaks tests
2929 Rector \CodeQuality \Rector \Concat \JoinStringConcatRector::class => [
3030 __DIR__ . '/tests/CSVArrayTest.php ' , // keep `\r\n` for readability
3131 ],
Original file line number Diff line number Diff line change 33# - MLL\Utils\PHPStan\Rules\ThrowableClassNameRule
44# - MLL\Utils\PHPStan\Rules\VariableNameIdToIDRule
55parameters :
6+ # https://github.com/spaze/phpstan-disallowed-calls/blob/main/docs/custom-rules.md
67 disallowedFunctionCalls :
78 - function : ' compact()'
8- message : ' makes refactoring code hard'
9- errorTip : ' use standard array syntax instead'
9+ message : ' makes refactoring code hard. '
10+ errorTip : ' use standard array syntax instead. '
1011 # https://github.com/itsgoingd/clockwork?tab=readme-ov-file#logging
1112 - function : ' clock()'
12- message : ' remove debugging code'
13+ message : ' it is just meant for debugging.'
14+ errorTip : ' remove debugging code.'
15+ disallowedStaticCalls :
16+ - method : ' Carbon\Carbon::create()'
17+ message : ' it ignores errors.'
18+ errorTip : ' use Carbon\Carbon::createStrict() instead.'
You can’t perform that action at this time.
0 commit comments