Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

## 1.0.1 under development

- no changes in this release.
- Enh #4: Add the `no_empty_statement` rule to `@Yiisoft/Core` (@mspirkov)

## 1.0.0 January 23, 2026

- Initial release.
- Initial release.
6 changes: 1 addition & 5 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,16 @@
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig;
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;

return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withPhpSets(php81: true)
->withPhp74Sets()
->withRules([
InlineConstructorDefaultToPropertyRector::class,
])
->withSkip([
ClosureToArrowFunctionRector::class,
ReadOnlyPropertyRector::class,
NullToStrictStringFuncCallArgRector::class,
]);
2 changes: 1 addition & 1 deletion src/Sets/YiisoftCoreRiskySet.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public function getRules(): array
{
return [
'declare_strict_types' => true,
'native_function_invocation' => true,
'native_constant_invocation' => true,
'native_function_invocation' => true,
];
}

Expand Down
17 changes: 9 additions & 8 deletions src/Sets/YiisoftCoreSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ public function getRules(): array
{
return [
'@PER-CS' => true,
'no_unused_imports' => true,
'no_extra_blank_lines' => [
'tokens' => [
'curly_brace_block',
'extra',
],
],
'ordered_class_elements' => true,
'class_attributes_separation' => ['elements' => ['method' => 'one']],
'fully_qualified_strict_types' => [
'import_symbols' => true,
Expand All @@ -34,6 +26,15 @@ public function getRules(): array
'import_constants' => true,
'import_functions' => true,
],
'no_empty_statement' => true,
'no_extra_blank_lines' => [
'tokens' => [
'curly_brace_block',
'extra',
],
],
'no_unused_imports' => true,
'ordered_class_elements' => true,
];
}

Expand Down