Skip to content

Commit

Permalink
Merge pull request #5 from samsonasik/remove-unused-construct
Browse files Browse the repository at this point in the history
Remove unnecessary parent::__construct()
  • Loading branch information
samsonasik authored Sep 8, 2024
2 parents 09eca0c + 376409d commit 635fbc5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 31 deletions.
30 changes: 7 additions & 23 deletions rector.php
Original file line number Diff line number Diff line change
@@ -1,30 +1,14 @@
<?php

use Rector\CodingStyle\Rector\ArrowFunction\StaticArrowFunctionRector;
use Rector\CodingStyle\Rector\Closure\StaticClosureRector;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
use Rector\Set\ValueObject\SetList;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->sets([
SetList::CODING_STYLE,
LevelSetList::UP_TO_PHP_81,
SetList::CODE_QUALITY,
SetList::TYPE_DECLARATION
]);

$rectorConfig->paths([__DIR__ . '/src', __DIR__ . '/spec', __FILE__]);
$rectorConfig->importNames();

$rectorConfig->skip([
return RectorConfig::configure()
->withPreparedSets(codingStyle: true, codeQuality: true, typeDeclarations: true)
->withPhpSets(php81: true)
->withPaths([__DIR__ . '/src', __DIR__ . '/spec'])
->withRootFiles()
->withImportNames(removeUnusedImports: true)
->withSkip([
NullToStrictStringFuncCallArgRector::class,
StaticArrowFunctionRector::class => [
__DIR__ . '/spec',
],
StaticClosureRector::class => [
__DIR__ . '/spec',
]
]);
};
8 changes: 0 additions & 8 deletions src/Validator/Naming.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ final class Naming extends AbstractValidator
self::DOT_TOBE_IN_LAST_WORD => '"." must be at last word character',
];

/**
* @param mixed[] $options
*/
public function __construct(array $options = [])
{
parent::__construct($options);
}

/** @param string $value */
public function isValid($value): bool
{
Expand Down

0 comments on commit 635fbc5

Please sign in to comment.