Skip to content

Commit 592a0c4

Browse files
committed
ci(rector): add new rules for Rector configuration
- Added BooleanInBooleanNotRuleFixerRector to the rules. - Added StaticClosureRector to the rules. These changes enhance the Rector configuration by incorporating additional rules that improve code quality and maintainability.
1 parent 1e88f7e commit 592a0c4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

rector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@
172172
]);
173173

174174
$rectorConfig->rules([
175+
BooleanInBooleanNotRuleFixerRector::class,
175176
InlineConstructorDefaultToPropertyRector::class,
177+
StaticClosureRector::class,
176178
]);
177179

178180
$rectorConfig->ruleWithConfiguration(RenameFunctionRector::class, [

src/Support/helpers.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@
1414
/**
1515
* @param mixed $expression
1616
*
17-
* @return string|void
18-
*
1917
* @noinspection DebugFunctionUsageInspection
2018
*/
21-
function var_output($expression, bool $return = false)
19+
function var_output($expression, bool $return = false): ?string
2220
{
2321
$patterns = [
2422
"/array \\(\n\\)/" => '[]',
@@ -36,6 +34,8 @@ function var_output($expression, bool $return = false)
3634
}
3735

3836
echo $export;
37+
38+
return null;
3939
}
4040
}
4141

0 commit comments

Comments
 (0)