Skip to content

Commit

Permalink
Bump to latest Rector 0.19.2 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik authored Jan 19, 2024
1 parent d0490bd commit 8cabc90
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ composer require codito/rector-money --dev
To add a set to your config, use `Codito\Rector\Money\MoneySetList` class:

```php
use Rector\Core\Configuration\Option;
use Rector\Configuration\Option;
use Codito\Rector\Money\MoneySetList;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"require": {
"php": "^7.4|^8.0",
"rector/rector": "^0.18.1"
"rector/rector": "^0.19.2"
},
"require-dev": {
"roave/security-advisories": "dev-latest",
Expand Down
2 changes: 1 addition & 1 deletion phparkitect.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Arkitect\Expression\ForClasses\HaveNameMatching;
use Arkitect\Expression\ForClasses\ResideInOneOfTheseNamespaces;
use Arkitect\Rules\Rule;
use Rector\Core\Rector\AbstractRector;
use Rector\Rector\AbstractRector;

return static function (Config $config): void {
$srcClassSet = ClassSet::fromDir(__DIR__ . '/src');
Expand Down
2 changes: 1 addition & 1 deletion phpstan.dist.neon
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ parameters:
- vendor/symplify/easy-coding-standard/vendor/squizlabs/php_codesniffer/src

ignoreErrors:
- '#Parameter \#1 \$node \(PhpParser\\Node\\(.*?) of method (Codito\\)?Rector\\(.*?)\(\) should be contravariant with parameter \$node \(PhpParser\\Node\) of method Rector\\Core\\Contract\\Rector\\RectorInterface\:\:refactor\(\)#'
- '#Parameter \#1 \$node \(PhpParser\\Node\\(.*?) of method (Codito\\)?Rector\\(.*?)\(\) should be contravariant with parameter \$node \(PhpParser\\Node\) of method Rector\\Contract\\Rector\\RectorInterface\:\:refactor\(\)#'
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use PhpParser\Node;
use PhpParser\Node\Expr\MethodCall;
use PHPStan\Type\TypeWithClassName;
use Rector\Core\Rector\AbstractRector;
use Rector\Rector\AbstractRector;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;

Expand Down
4 changes: 2 additions & 2 deletions src/Rule/MultiplyAndDivideByStringRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
use PhpParser\Node\Scalar\String_;
use PHPStan\Analyser\MutatingScope;
use PHPStan\Type\ObjectType;
use Rector\Core\Contract\Rector\ConfigurableRectorInterface;
use Rector\Core\Rector\AbstractRector;
use Rector\Contract\Rector\ConfigurableRectorInterface;
use Rector\NodeTypeResolver\Node\AttributeKey;
use Rector\Rector\AbstractRector;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
use Webmozart\Assert\Assert;
Expand Down

0 comments on commit 8cabc90

Please sign in to comment.