diff --git a/.github/workflows/code_analysis.yaml b/.github/workflows/code_analysis.yaml
deleted file mode 100644
index e61e14dd..00000000
--- a/.github/workflows/code_analysis.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-name: Code Analysis
-
-on:
- pull_request: null
- push:
- branches:
- - main
-
-env:
- # see https://github.com/composer/composer/issues/9368#issuecomment-718112361
- COMPOSER_ROOT_VERSION: "dev-main"
-
-jobs:
- code_analysis:
- runs-on: ubuntu-latest
-
- strategy:
- matrix:
- actions:
- -
- name: 'Composer Validate'
- run: composer validate
-
- -
- name: 'Duster Lint'
- run: composer lint
-
- -
- name: 'Rector Dry Run'
- run: composer rector-dry-run
-
- -
- name: 'PHPStan'
- run: composer phpstan
-
- name: ${{ matrix.actions.name }}
-
- steps:
- - uses: actions/checkout@v4
-
- - uses: shivammathur/setup-php@v2
- with:
- php-version: 8.3
- coverage: none
-
- - uses: ramsey/composer-install@v2
-
- - run: ${{ matrix.actions.run }}
diff --git a/.github/workflows/downgraded_release.yaml b/.github/workflows/downgraded_release.yaml
deleted file mode 100644
index 9a2ce3ce..00000000
--- a/.github/workflows/downgraded_release.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-name: Downgraded Release
-
-# https://tomasvotruba.com/blog/how-to-release-php-81-and-72-package-in-the-same-repository/
-# https://github.com/TomasVotruba/cognitive-complexity/blob/main/.github/workflows/downgraded_release.yaml
-# https://github.com/symplify/config-transformer/blob/main/.github/workflows/downgraded_release.yaml
-
-on:
- push:
- tags:
- - '*'
-
-jobs:
- downgrade_release:
- runs-on: ubuntu-latest
-
- steps:
- -
- uses: "actions/checkout@v3"
-
- -
- uses: "shivammathur/setup-php@v2"
- with:
- php-version: 8.2
- coverage: none
-
- - uses: "ramsey/composer-install@v2"
-
- # downgrade /src to PHP 7.2
- - run: vendor/bin/rector process src config --config build/rector-downgrade-php-72.php --ansi
-
- # copy PHP 7.2 composer
- - run: cp build/composer-php-72.json composer.json
-
- # clear the dev files
- - run: rm -rf build .github tests stubs phpstan.neon phpunit.xml
-
- # setup git user
- -
- run: |
- git config user.email "action@github.com"
- git config user.name "GitHub Action"
-
- # publish to the same repository with a new tag
- -
- name: "Tag Downgraded Code"
- run: |
- git commit -a -m "release PHP 7.2 downgraded ${GITHUB_REF#refs/tags/}"
-
- # force push tag, so there is only 1 version
- git tag "${GITHUB_REF#refs/tags/}" --force
- git push origin "${GITHUB_REF#refs/tags/}" --force
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
deleted file mode 100644
index 6e5c90c8..00000000
--- a/.github/workflows/tests.yaml
+++ /dev/null
@@ -1,28 +0,0 @@
-name: Tests
-
-on:
- pull_request: null
- push:
- branches:
- - main
-
-env:
- # see https://github.com/composer/composer/issues/9368#issuecomment-718112361
- COMPOSER_ROOT_VERSION: "dev-main"
-
-jobs:
- tests:
- runs-on: ubuntu-latest
-
- name: PHP Tests
- steps:
- - uses: actions/checkout@v4
-
- - uses: shivammathur/setup-php@v2
- with:
- php-version: 8.3
- coverage: none
-
- - uses: ramsey/composer-install@v2
-
- - run: vendor/bin/phpunit tests
diff --git a/build/composer-php-72.json b/build/composer-php-72.json
deleted file mode 100644
index a53f0f7f..00000000
--- a/build/composer-php-72.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "name": "driftingly/rector-laravel",
- "type": "rector-extension",
- "license": "MIT",
- "description": "Rector upgrades rules for Laravel Framework",
- "require": {
- "php": "^7.2 || ^8.0",
- "rector/rector": "^1.0"
- },
- "autoload": {
- "psr-4": {
- "RectorLaravel\\": "src"
- }
- },
- "autoload-dev": {
- "classmap": ["stubs"]
- },
- "minimum-stability": "dev",
- "prefer-stable": true
-}
diff --git a/build/rector-downgrade-php-72.php b/build/rector-downgrade-php-72.php
deleted file mode 100644
index 5550cffe..00000000
--- a/build/rector-downgrade-php-72.php
+++ /dev/null
@@ -1,10 +0,0 @@
-sets([DowngradeLevelSetList::DOWN_TO_PHP_72]);
-};
diff --git a/composer.json b/composer.json
index a0688221..a53f0f7f 100644
--- a/composer.json
+++ b/composer.json
@@ -4,20 +4,8 @@
"license": "MIT",
"description": "Rector upgrades rules for Laravel Framework",
"require": {
- "php": ">=8.2",
- "rector/rector": "^1.2.5"
- },
- "require-dev": {
- "nikic/php-parser": "^4.18",
- "phpstan/extension-installer": "^1.3",
- "phpstan/phpstan": "^1.10",
- "phpstan/phpstan-strict-rules": "^1.5",
- "phpstan/phpstan-webmozart-assert": "^1.2",
- "phpunit/phpunit": "^10.5",
- "symplify/phpstan-extensions": "^11.4",
- "symplify/phpstan-rules": "^12.4",
- "symplify/rule-doc-generator": "^12.1",
- "tightenco/duster": "^2.7"
+ "php": "^7.2 || ^8.0",
+ "rector/rector": "^1.0"
},
"autoload": {
"psr-4": {
@@ -25,28 +13,8 @@
}
},
"autoload-dev": {
- "psr-4": {
- "RectorLaravel\\Tests\\": "tests"
- },
"classmap": ["stubs"]
},
- "scripts": {
- "phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify",
- "check-cs": "vendor/bin/duster lint",
- "fix-cs": "vendor/bin/duster fix",
- "lint": "vendor/bin/duster lint",
- "fix": "vendor/bin/duster fix",
- "rector-dry-run": "vendor/bin/rector process --dry-run --ansi",
- "rector": "vendor/bin/rector process --ansi",
- "docs": "vendor/bin/rule-doc-generator generate src --output-file docs/rector_rules_overview.md --ansi"
- },
"minimum-stability": "dev",
- "prefer-stable": true,
- "config": {
- "allow-plugins": {
- "rector/extension-installer": true,
- "phpstan/extension-installer": true,
- "cweagans/composer-patches": false
- }
- }
+ "prefer-stable": true
}
diff --git a/config/sets/laravel-array-str-functions-to-static-call.php b/config/sets/laravel-array-str-functions-to-static-call.php
index e996802b..e18e80d8 100644
--- a/config/sets/laravel-array-str-functions-to-static-call.php
+++ b/config/sets/laravel-array-str-functions-to-static-call.php
@@ -62,7 +62,9 @@
new FuncCallToStaticCall('studly_case', 'Illuminate\Support\Str', 'studly'),
new FuncCallToStaticCall('title_case', 'Illuminate\Support\Str', 'title'),
],
- fn ($function) => ! in_array($function->getOldFuncName(), $internalFunctions, true)
+ function ($function) use ($internalFunctions) {
+ return ! in_array($function->getOldFuncName(), $internalFunctions, true);
+ }
)
);
};
diff --git a/config/sets/laravel-arrayaccess-to-method-call.php b/config/sets/laravel-arrayaccess-to-method-call.php
index 9ff916e1..f12f7e07 100644
--- a/config/sets/laravel-arrayaccess-to-method-call.php
+++ b/config/sets/laravel-arrayaccess-to-method-call.php
@@ -9,34 +9,12 @@
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->import(__DIR__ . '/../config.php');
- $rectorConfig
- ->ruleWithConfiguration(
- ArrayDimFetchToMethodCallRector::class,
- [
- new ArrayDimFetchToMethodCall(
- new ObjectType('Illuminate\Foundation\Application'),
- 'make',
- ),
- new ArrayDimFetchToMethodCall(
- new ObjectType('Illuminate\Contracts\Foundation\Application'),
- 'make',
- ),
- new ArrayDimFetchToMethodCall(
- new ObjectType('Illuminate\Config\Repository'),
- 'get',
- ),
- new ArrayDimFetchToMethodCall(
- new ObjectType('Illuminate\Contracts\Config\Repository'),
- 'make',
- ),
- new ArrayDimFetchToMethodCall(
- new ObjectType('Illuminate\Contracts\Container\Container\Application'),
- 'make',
- ),
- new ArrayDimFetchToMethodCall(
- new ObjectType('Illuminate\Contracts\Container\Container'),
- 'make',
- ),
- ],
- );
+ $rectorConfig->ruleWithConfiguration(ArrayDimFetchToMethodCallRector::class, [
+ new ArrayDimFetchToMethodCall(new ObjectType('Illuminate\Foundation\Application'), 'make'),
+ new ArrayDimFetchToMethodCall(new ObjectType('Illuminate\Contracts\Foundation\Application'), 'make'),
+ new ArrayDimFetchToMethodCall(new ObjectType('Illuminate\Config\Repository'), 'get'),
+ new ArrayDimFetchToMethodCall(new ObjectType('Illuminate\Contracts\Config\Repository'), 'make'),
+ new ArrayDimFetchToMethodCall(new ObjectType('Illuminate\Contracts\Container\Container\Application'), 'make'),
+ new ArrayDimFetchToMethodCall(new ObjectType('Illuminate\Contracts\Container\Container'), 'make'),
+ ]);
};
diff --git a/config/sets/laravel-container-string-to-fully-qualified-name.php b/config/sets/laravel-container-string-to-fully-qualified-name.php
index faa59556..1dca864f 100644
--- a/config/sets/laravel-container-string-to-fully-qualified-name.php
+++ b/config/sets/laravel-container-string-to-fully-qualified-name.php
@@ -63,17 +63,15 @@
'command.tinker' => 'Laravel\Tinker\Console\TinkerCommand',
];
- $ruleConfig = array_map(
- fn (string $service, string $interface) => new ReplaceServiceContainerCallArg(
+ $ruleConfig = array_map(function (string $service, string $interface) {
+ return new ReplaceServiceContainerCallArg(
$service,
new ClassConstFetch(
new FullyQualified($interface),
'class'
)
- ),
- array_keys($servicesMap),
- $servicesMap,
- );
+ );
+ }, array_keys($servicesMap), $servicesMap);
$rectorConfig->ruleWithConfiguration(
ReplaceServiceContainerCallArgRector::class,
diff --git a/config/sets/laravel90.php b/config/sets/laravel90.php
index 6c825fe7..92c60a8e 100644
--- a/config/sets/laravel90.php
+++ b/config/sets/laravel90.php
@@ -20,41 +20,17 @@
// https://github.com/laravel/framework/commit/8f9ddea4481717943ed4ecff96d86b703c81a87d
$rectorConfig
- ->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdder(
- 'Illuminate\Contracts\Foundation\Application',
- 'storagePath',
- 0,
- 'path',
- '',
- null,
- ArgumentAddingScope::SCOPE_CLASS_METHOD,
- ),
+ ->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdder('Illuminate\Contracts\Foundation\Application', 'storagePath', 0, 'path', '', null, ArgumentAddingScope::SCOPE_CLASS_METHOD),
]);
// https://github.com/laravel/framework/commit/e6c8aaea886d35cc55bd3469f1a95ad56d53e474
$rectorConfig
- ->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdder(
- 'Illuminate\Foundation\Application',
- 'langPath',
- 0,
- 'path',
- '',
- null,
- ArgumentAddingScope::SCOPE_CLASS_METHOD,
- ),
+ ->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdder('Illuminate\Foundation\Application', 'langPath', 0, 'path', '', null, ArgumentAddingScope::SCOPE_CLASS_METHOD),
]);
// https://github.com/laravel/framework/commit/e095ac0e928b5620f33c9b60816fde5ece867d32
$rectorConfig
- ->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdder(
- 'Illuminate\Database\Eloquent\Model',
- 'touch',
- 0,
- 'attribute',
- null,
- null,
- ArgumentAddingScope::SCOPE_CLASS_METHOD,
- ),
+ ->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdder('Illuminate\Database\Eloquent\Model', 'touch', 0, 'attribute', null, null, ArgumentAddingScope::SCOPE_CLASS_METHOD),
]);
// https://github.com/laravel/framework/commit/84c78b9f5f3dad58f92161069e6482f7267ffdb6
diff --git a/phpstan.neon b/phpstan.neon
deleted file mode 100644
index bb8e6810..00000000
--- a/phpstan.neon
+++ /dev/null
@@ -1,31 +0,0 @@
-includes:
- - vendor/symplify/phpstan-rules/config/rector-rules.neon
-parameters:
- level: max
-
- paths:
- - config
- - src
- - tests
-
- scanDirectories:
- - stubs
-
- excludePaths:
- - */Source/*
- - *Source/*
-
-# reportUnmatchedIgnoredErrors: false
-
- ignoreErrors:
- # false positive
- - '#Parameter \#1 \$value of static method PhpParser\\BuilderHelpers\:\:normalizeValue\(\) expects array\|bool\|float\|int\|PhpParser\\Node\\Expr\|string\|null, mixed given#'
-
- -
- path: src/Rector/Class_/UnifyModelDatesWithCastsRector.php
- message: '#Parameter \#1 \$array of function array_keys expects array, mixed given#'
-
- # rector co-variant
- - '#Parameter \#1 \$node (.*?) of method RectorLaravel\\(.*?)\:\:(refactor|refactorWithScope)\(\) should be contravariant with parameter \$node \(PhpParser\\Node\) of method Rector\\Contract\\Rector\\RectorInterface\:\:refactor\(\)#'
-
- - '#Parameter \#1 \$className of method Rector\\Reflection\\ReflectionResolver\:\:resolveMethodReflection\(\) expects class\-string, string given#'
diff --git a/phpunit.xml b/phpunit.xml
deleted file mode 100644
index ffc6b237..00000000
--- a/phpunit.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
- tests
-
-
-
diff --git a/src/NodeAnalyzer/LumenRouteRegisteringMethodAnalyzer.php b/src/NodeAnalyzer/LumenRouteRegisteringMethodAnalyzer.php
index e5d8e2b8..89aaea35 100644
--- a/src/NodeAnalyzer/LumenRouteRegisteringMethodAnalyzer.php
+++ b/src/NodeAnalyzer/LumenRouteRegisteringMethodAnalyzer.php
@@ -11,12 +11,22 @@
use Rector\NodeNameResolver\NodeNameResolver;
use Rector\NodeTypeResolver\NodeTypeResolver;
-final readonly class LumenRouteRegisteringMethodAnalyzer
+final class LumenRouteRegisteringMethodAnalyzer
{
- public function __construct(
- private NodeTypeResolver $nodeTypeResolver,
- private NodeNameResolver $nodeNameResolver
- ) {
+ /**
+ * @readonly
+ * @var \Rector\NodeTypeResolver\NodeTypeResolver
+ */
+ private $nodeTypeResolver;
+ /**
+ * @readonly
+ * @var \Rector\NodeNameResolver\NodeNameResolver
+ */
+ private $nodeNameResolver;
+ public function __construct(NodeTypeResolver $nodeTypeResolver, NodeNameResolver $nodeNameResolver)
+ {
+ $this->nodeTypeResolver = $nodeTypeResolver;
+ $this->nodeNameResolver = $nodeNameResolver;
}
public function isLumenRoutingClass(MethodCall $methodCall): bool
@@ -24,12 +34,18 @@ public function isLumenRoutingClass(MethodCall $methodCall): bool
return $this->nodeTypeResolver->isObjectType($methodCall->var, new ObjectType('Laravel\Lumen\Routing\Router'));
}
- public function isRoutesRegisterGroup(Identifier|Expr $name): bool
+ /**
+ * @param \PhpParser\Node\Identifier|\PhpParser\Node\Expr $name
+ */
+ public function isRoutesRegisterGroup($name): bool
{
return $this->nodeNameResolver->isName($name, 'group');
}
- public function isRoutesRegisterRoute(Identifier|Expr $name): bool
+ /**
+ * @param \PhpParser\Node\Identifier|\PhpParser\Node\Expr $name
+ */
+ public function isRoutesRegisterRoute($name): bool
{
return $this->nodeNameResolver->isNames($name, ['delete', 'get', 'options', 'patch', 'post', 'put']);
}
diff --git a/src/NodeAnalyzer/StaticCallAnalyzer.php b/src/NodeAnalyzer/StaticCallAnalyzer.php
index 001e2acc..bc6f40e9 100644
--- a/src/NodeAnalyzer/StaticCallAnalyzer.php
+++ b/src/NodeAnalyzer/StaticCallAnalyzer.php
@@ -9,11 +9,16 @@
use PhpParser\Node\Expr\StaticCall;
use Rector\NodeNameResolver\NodeNameResolver;
-final readonly class StaticCallAnalyzer
+final class StaticCallAnalyzer
{
- public function __construct(
- private NodeNameResolver $nodeNameResolver
- ) {
+ /**
+ * @readonly
+ * @var \Rector\NodeNameResolver\NodeNameResolver
+ */
+ private $nodeNameResolver;
+ public function __construct(NodeNameResolver $nodeNameResolver)
+ {
+ $this->nodeNameResolver = $nodeNameResolver;
}
public function isParentCallNamed(Node $node, string $desiredMethodName): bool
diff --git a/src/NodeFactory/AppAssignFactory.php b/src/NodeFactory/AppAssignFactory.php
index 13d199fb..e39aea5f 100644
--- a/src/NodeFactory/AppAssignFactory.php
+++ b/src/NodeFactory/AppAssignFactory.php
@@ -13,11 +13,16 @@
use Rector\BetterPhpDocParser\ValueObject\Type\FullyQualifiedIdentifierTypeNode;
use RectorLaravel\ValueObject\ServiceNameTypeAndVariableName;
-final readonly class AppAssignFactory
+final class AppAssignFactory
{
- public function __construct(
- private PhpDocInfoFactory $phpDocInfoFactory
- ) {
+ /**
+ * @readonly
+ * @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
+ */
+ private $phpDocInfoFactory;
+ public function __construct(PhpDocInfoFactory $phpDocInfoFactory)
+ {
+ $this->phpDocInfoFactory = $phpDocInfoFactory;
}
public function createAssignExpression(
diff --git a/src/NodeFactory/ModelFactoryNodeFactory.php b/src/NodeFactory/ModelFactoryNodeFactory.php
index 10e81ba1..945c2683 100644
--- a/src/NodeFactory/ModelFactoryNodeFactory.php
+++ b/src/NodeFactory/ModelFactoryNodeFactory.php
@@ -26,19 +26,39 @@
use Rector\PhpParser\Node\NodeFactory;
use Rector\PhpParser\Node\Value\ValueResolver;
-final readonly class ModelFactoryNodeFactory
+final class ModelFactoryNodeFactory
{
+ /**
+ * @readonly
+ * @var \Rector\NodeNameResolver\NodeNameResolver
+ */
+ private $nodeNameResolver;
+ /**
+ * @readonly
+ * @var \Rector\PhpParser\Node\NodeFactory
+ */
+ private $nodeFactory;
+ /**
+ * @readonly
+ * @var \Rector\PhpParser\Node\Value\ValueResolver
+ */
+ private $valueResolver;
+ /**
+ * @readonly
+ * @var \Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser
+ */
+ private $simpleCallableNodeTraverser;
/**
* @var string
*/
private const THIS = 'this';
- public function __construct(
- private NodeNameResolver $nodeNameResolver,
- private NodeFactory $nodeFactory,
- private ValueResolver $valueResolver,
- private SimpleCallableNodeTraverser $simpleCallableNodeTraverser
- ) {
+ public function __construct(NodeNameResolver $nodeNameResolver, NodeFactory $nodeFactory, ValueResolver $valueResolver, SimpleCallableNodeTraverser $simpleCallableNodeTraverser)
+ {
+ $this->nodeNameResolver = $nodeNameResolver;
+ $this->nodeFactory = $nodeFactory;
+ $this->valueResolver = $valueResolver;
+ $this->simpleCallableNodeTraverser = $simpleCallableNodeTraverser;
}
public function createEmptyFactory(string $name, Expr $expr): Class_
@@ -67,7 +87,10 @@ public function createEmptyFactory(string $name, Expr $expr): Class_
return $class;
}
- public function createDefinition(Closure|ArrowFunction $callable): ClassMethod
+ /**
+ * @param \PhpParser\Node\Expr\Closure|\PhpParser\Node\Expr\ArrowFunction $callable
+ */
+ public function createDefinition($callable): ClassMethod
{
if (isset($callable->params[0])) {
$this->fakerVariableToPropertyFetch($callable->getStmts(), $callable->params[0]);
@@ -118,7 +141,10 @@ public function createEmptyConfigure(): ClassMethod
return $this->createPublicMethod('configure', [$return]);
}
- public function appendConfigure(ClassMethod $classMethod, string $name, Closure|ArrowFunction $callable): void
+ /**
+ * @param \PhpParser\Node\Expr\Closure|\PhpParser\Node\Expr\ArrowFunction $callable
+ */
+ public function appendConfigure(ClassMethod $classMethod, string $name, $callable): void
{
$this->simpleCallableNodeTraverser->traverseNodesWithCallable(
(array) $classMethod->stmts,
diff --git a/src/NodeFactory/RouterRegisterNodeAnalyzer.php b/src/NodeFactory/RouterRegisterNodeAnalyzer.php
index 960b5648..ea1a7ef2 100644
--- a/src/NodeFactory/RouterRegisterNodeAnalyzer.php
+++ b/src/NodeFactory/RouterRegisterNodeAnalyzer.php
@@ -12,15 +12,28 @@
use Rector\NodeNameResolver\NodeNameResolver;
use Rector\NodeTypeResolver\NodeTypeResolver;
-final readonly class RouterRegisterNodeAnalyzer
+final class RouterRegisterNodeAnalyzer
{
- public function __construct(
- private NodeNameResolver $nodeNameResolver,
- private NodeTypeResolver $nodeTypeResolver
- ) {
+ /**
+ * @readonly
+ * @var \Rector\NodeNameResolver\NodeNameResolver
+ */
+ private $nodeNameResolver;
+ /**
+ * @readonly
+ * @var \Rector\NodeTypeResolver\NodeTypeResolver
+ */
+ private $nodeTypeResolver;
+ public function __construct(NodeNameResolver $nodeNameResolver, NodeTypeResolver $nodeTypeResolver)
+ {
+ $this->nodeNameResolver = $nodeNameResolver;
+ $this->nodeTypeResolver = $nodeTypeResolver;
}
- public function isRegisterMethodStaticCall(MethodCall|StaticCall $node): bool
+ /**
+ * @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall $node
+ */
+ public function isRegisterMethodStaticCall($node): bool
{
if (! $this->isRegisterName($node->name)) {
return false;
@@ -39,7 +52,10 @@ public function isRegisterMethodStaticCall(MethodCall|StaticCall $node): bool
);
}
- public function isRegisterName(Identifier|Expr $name): bool
+ /**
+ * @param \PhpParser\Node\Identifier|\PhpParser\Node\Expr $name
+ */
+ public function isRegisterName($name): bool
{
if ($this->isRegisterAnyVerb($name)) {
return true;
@@ -56,22 +72,34 @@ public function isRegisterName(Identifier|Expr $name): bool
return $this->isRegisterFallback($name);
}
- public function isRegisterMultipleVerbs(Identifier|Expr $name): bool
+ /**
+ * @param \PhpParser\Node\Identifier|\PhpParser\Node\Expr $name
+ */
+ public function isRegisterMultipleVerbs($name): bool
{
return $this->nodeNameResolver->isName($name, 'match');
}
- public function isRegisterAllVerbs(Identifier|Expr $name): bool
+ /**
+ * @param \PhpParser\Node\Identifier|\PhpParser\Node\Expr $name
+ */
+ public function isRegisterAllVerbs($name): bool
{
return $this->nodeNameResolver->isName($name, 'any');
}
- public function isRegisterAnyVerb(Identifier|Expr $name): bool
+ /**
+ * @param \PhpParser\Node\Identifier|\PhpParser\Node\Expr $name
+ */
+ public function isRegisterAnyVerb($name): bool
{
return $this->nodeNameResolver->isNames($name, ['delete', 'get', 'options', 'patch', 'post', 'put']);
}
- public function isRegisterFallback(Identifier|Expr $name): bool
+ /**
+ * @param \PhpParser\Node\Identifier|\PhpParser\Node\Expr $name
+ */
+ public function isRegisterFallback($name): bool
{
return $this->nodeNameResolver->isName($name, 'fallback');
}
diff --git a/src/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector.php b/src/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector.php
index 90698aa1..87a9eae1 100644
--- a/src/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector.php
+++ b/src/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector.php
@@ -26,16 +26,31 @@
*/
final class CallOnAppArrayAccessToStandaloneAssignRector extends AbstractRector
{
+ /**
+ * @readonly
+ * @var \RectorLaravel\NodeFactory\AppAssignFactory
+ */
+ private $appAssignFactory;
+ /**
+ * @readonly
+ * @var \Rector\Comments\NodeDocBlock\DocBlockUpdater
+ */
+ private $docBlockUpdater;
+ /**
+ * @readonly
+ * @var \Rector\PhpParser\Node\Value\ValueResolver
+ */
+ private $valueResolver;
/**
* @var ServiceNameTypeAndVariableName[]
*/
- private array $serviceNameTypeAndVariableNames = [];
+ private $serviceNameTypeAndVariableNames = [];
- public function __construct(
- private readonly AppAssignFactory $appAssignFactory,
- private readonly DocBlockUpdater $docBlockUpdater,
- private readonly ValueResolver $valueResolver,
- ) {
+ public function __construct(AppAssignFactory $appAssignFactory, DocBlockUpdater $docBlockUpdater, ValueResolver $valueResolver)
+ {
+ $this->appAssignFactory = $appAssignFactory;
+ $this->docBlockUpdater = $docBlockUpdater;
+ $this->valueResolver = $valueResolver;
$this->serviceNameTypeAndVariableNames[] = new ServiceNameTypeAndVariableName(
'validator',
'Illuminate\Validation\Factory',
@@ -53,8 +68,9 @@ public function getNodeTypes(): array
/**
* @param Expression $node
+ * @return \PhpParser\Node|mixed[]|int|null
*/
- public function refactor(Node $node): Node|array|int|null
+ public function refactor(Node $node)
{
if (! $node->expr instanceof Assign) {
return null;
diff --git a/src/Rector/ClassMethod/AddArgumentDefaultValueRector.php b/src/Rector/ClassMethod/AddArgumentDefaultValueRector.php
index 8a3f88ae..abda19a8 100644
--- a/src/Rector/ClassMethod/AddArgumentDefaultValueRector.php
+++ b/src/Rector/ClassMethod/AddArgumentDefaultValueRector.php
@@ -24,12 +24,12 @@ final class AddArgumentDefaultValueRector extends AbstractRector implements Conf
/**
* @var string
*/
- final public const ADDED_ARGUMENTS = 'added_arguments';
+ public const ADDED_ARGUMENTS = 'added_arguments';
/**
* @var AddArgumentDefaultValue[]
*/
- private array $addedArguments = [];
+ private $addedArguments = [];
public function getRuleDefinition(): RuleDefinition
{
diff --git a/src/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector.php b/src/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector.php
index d88ac995..28facb33 100644
--- a/src/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector.php
+++ b/src/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector.php
@@ -30,6 +30,31 @@
/** @see \RectorLaravel\Tests\Rector\ClassMethod\AddGenericReturnTypeToRelationsRector\AddGenericReturnTypeToRelationsRectorTest */
class AddGenericReturnTypeToRelationsRector extends AbstractScopeAwareRector
{
+ /**
+ * @readonly
+ * @var \Rector\NodeTypeResolver\TypeComparator\TypeComparator
+ */
+ private $typeComparator;
+ /**
+ * @readonly
+ * @var \Rector\Comments\NodeDocBlock\DocBlockUpdater
+ */
+ private $docBlockUpdater;
+ /**
+ * @readonly
+ * @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
+ */
+ private $phpDocInfoFactory;
+ /**
+ * @readonly
+ * @var \Rector\PhpParser\Node\BetterNodeFinder
+ */
+ private $betterNodeFinder;
+ /**
+ * @readonly
+ * @var \Rector\StaticTypeMapper\StaticTypeMapper
+ */
+ private $staticTypeMapper;
// Relation methods which are supported by this Rector.
private const RELATION_METHODS = [
'hasOne', 'hasOneThrough', 'morphOne',
@@ -41,13 +66,13 @@ class AddGenericReturnTypeToRelationsRector extends AbstractScopeAwareRector
// Relation methods which need the class as TChildModel.
private const RELATION_WITH_CHILD_METHODS = ['belongsTo', 'morphTo'];
- public function __construct(
- private readonly TypeComparator $typeComparator,
- private readonly DocBlockUpdater $docBlockUpdater,
- private readonly PhpDocInfoFactory $phpDocInfoFactory,
- private readonly BetterNodeFinder $betterNodeFinder,
- private readonly StaticTypeMapper $staticTypeMapper,
- ) {
+ public function __construct(TypeComparator $typeComparator, DocBlockUpdater $docBlockUpdater, PhpDocInfoFactory $phpDocInfoFactory, BetterNodeFinder $betterNodeFinder, StaticTypeMapper $staticTypeMapper)
+ {
+ $this->typeComparator = $typeComparator;
+ $this->docBlockUpdater = $docBlockUpdater;
+ $this->phpDocInfoFactory = $phpDocInfoFactory;
+ $this->betterNodeFinder = $betterNodeFinder;
+ $this->staticTypeMapper = $staticTypeMapper;
}
public function getRuleDefinition(): RuleDefinition
@@ -169,10 +194,7 @@ public function refactorWithScope(Node $node, Scope $scope): ?Node
return null;
}
- $genericTypeNode = new GenericTypeNode(
- new FullyQualifiedIdentifierTypeNode($methodReturnTypeName),
- $this->getGenericTypes($relatedClass, $classForChildGeneric),
- );
+ $genericTypeNode = new GenericTypeNode(new FullyQualifiedIdentifierTypeNode($methodReturnTypeName), $this->getGenericTypes($relatedClass, $classForChildGeneric));
// Update or add return tag
if ($phpDocInfo->getReturnTagValue() instanceof ReturnTagValueNode) {
@@ -212,7 +234,9 @@ private function getRelationMethodCall(ClassMethod $classMethod): ?MethodCall
{
$node = $this->betterNodeFinder->findFirstInFunctionLikeScoped(
$classMethod,
- fn (Node $subNode): bool => $subNode instanceof Return_
+ function (Node $subNode) : bool {
+ return $subNode instanceof Return_;
+ }
);
if (! $node instanceof Return_) {
@@ -249,7 +273,7 @@ private function getClassForChildGeneric(Scope $scope, MethodCall $methodCall):
$classReflection = $scope->getClassReflection();
- return $classReflection?->getName();
+ return ($nullsafeVariable1 = $classReflection) ? $nullsafeVariable1->getName() : null;
}
private function areNativeTypeAndPhpDocReturnTypeEqual(
@@ -269,10 +293,7 @@ private function areNativeTypeAndPhpDocReturnTypeEqual(
$methodReturnTypePHPStanType = $this->staticTypeMapper->mapPhpParserNodePHPStanType($node);
- return $this->typeComparator->areTypesEqual(
- $methodReturnTypePHPStanType,
- $phpDocPHPStanTypeWithoutGenerics,
- );
+ return $this->typeComparator->areTypesEqual($methodReturnTypePHPStanType, $phpDocPHPStanTypeWithoutGenerics);
}
private function areGenericTypesEqual(
diff --git a/src/Rector/ClassMethod/AddParentBootToModelClassMethodRector.php b/src/Rector/ClassMethod/AddParentBootToModelClassMethodRector.php
index 92e93fc0..84a767c3 100644
--- a/src/Rector/ClassMethod/AddParentBootToModelClassMethodRector.php
+++ b/src/Rector/ClassMethod/AddParentBootToModelClassMethodRector.php
@@ -21,15 +21,25 @@
*/
final class AddParentBootToModelClassMethodRector extends AbstractRector
{
+ /**
+ * @readonly
+ * @var \RectorLaravel\NodeAnalyzer\StaticCallAnalyzer
+ */
+ private $staticCallAnalyzer;
+ /**
+ * @readonly
+ * @var \Rector\Reflection\ReflectionResolver
+ */
+ private $reflectionResolver;
/**
* @var string
*/
private const BOOT = 'boot';
- public function __construct(
- private readonly StaticCallAnalyzer $staticCallAnalyzer,
- private readonly ReflectionResolver $reflectionResolver,
- ) {
+ public function __construct(StaticCallAnalyzer $staticCallAnalyzer, ReflectionResolver $reflectionResolver)
+ {
+ $this->staticCallAnalyzer = $staticCallAnalyzer;
+ $this->reflectionResolver = $reflectionResolver;
}
public function getRuleDefinition(): RuleDefinition
diff --git a/src/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector.php b/src/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector.php
index 01e75d8f..ff304e8f 100644
--- a/src/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector.php
+++ b/src/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector.php
@@ -21,15 +21,25 @@
*/
final class AddParentRegisterToEventServiceProviderRector extends AbstractRector
{
+ /**
+ * @readonly
+ * @var \RectorLaravel\NodeAnalyzer\StaticCallAnalyzer
+ */
+ private $staticCallAnalyzer;
+ /**
+ * @readonly
+ * @var \Rector\Reflection\ReflectionResolver
+ */
+ private $reflectionResolver;
/**
* @var string
*/
private const REGISTER = 'register';
- public function __construct(
- private readonly StaticCallAnalyzer $staticCallAnalyzer,
- private readonly ReflectionResolver $reflectionResolver,
- ) {
+ public function __construct(StaticCallAnalyzer $staticCallAnalyzer, ReflectionResolver $reflectionResolver)
+ {
+ $this->staticCallAnalyzer = $staticCallAnalyzer;
+ $this->reflectionResolver = $reflectionResolver;
}
public function getRuleDefinition(): RuleDefinition
diff --git a/src/Rector/ClassMethod/MigrateToSimplifiedAttributeRector.php b/src/Rector/ClassMethod/MigrateToSimplifiedAttributeRector.php
index dee11b1a..cad530dc 100644
--- a/src/Rector/ClassMethod/MigrateToSimplifiedAttributeRector.php
+++ b/src/Rector/ClassMethod/MigrateToSimplifiedAttributeRector.php
@@ -31,9 +31,14 @@
/** @see \RectorLaravel\Tests\Rector\ClassMethod\MigrateToSimplifiedAttributeRector\MigrateToSimplifiedAttributeRectorTest */
final class MigrateToSimplifiedAttributeRector extends AbstractRector
{
- public function __construct(
- private readonly BetterNodeFinder $betterNodeFinder
- ) {
+ /**
+ * @readonly
+ * @var \Rector\PhpParser\Node\BetterNodeFinder
+ */
+ private $betterNodeFinder;
+ public function __construct(BetterNodeFinder $betterNodeFinder)
+ {
+ $this->betterNodeFinder = $betterNodeFinder;
}
/**
@@ -46,8 +51,9 @@ public function getNodeTypes(): array
/**
* @param Class_ $node
+ * @return \PhpParser\Node|mixed[]|int|null
*/
- public function refactor(Node $node): Node|array|int|null
+ public function refactor(Node $node)
{
if (! $this->isObjectType($node, new ObjectType('Illuminate\Database\Eloquent\Model'))) {
return null;
@@ -119,8 +125,9 @@ protected function firstName(): \Illuminate\Database\Eloquent\Casts\Attribute
/**
* @param ClassMethod[] $allClassMethods
+ * @return \PhpParser\Node\Stmt\ClassMethod|int|null
*/
- private function refactorClassMethod(ClassMethod $classMethod, array $allClassMethods): ClassMethod|int|null
+ private function refactorClassMethod(ClassMethod $classMethod, array $allClassMethods)
{
$nodeName = $classMethod->name->name;
@@ -269,12 +276,12 @@ private function createAttributeClassMethod(
private function isAccessor(string $nodeName): bool
{
- return str_starts_with($nodeName, 'get') && str_ends_with($nodeName, 'Attribute');
+ return strncmp($nodeName, 'get', strlen('get')) === 0 && substr_compare($nodeName, 'Attribute', -strlen('Attribute')) === 0;
}
private function isMutator(string $nodeName): bool
{
- return str_starts_with($nodeName, 'set') && str_ends_with($nodeName, 'Attribute');
+ return strncmp($nodeName, 'set', strlen('set')) === 0 && substr_compare($nodeName, 'Attribute', -strlen('Attribute')) === 0;
}
/**
diff --git a/src/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector.php b/src/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector.php
index df12fd9d..5a2cefa5 100644
--- a/src/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector.php
+++ b/src/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector.php
@@ -28,14 +28,24 @@
*/
final class AddExtendsAnnotationToModelFactoriesRector extends AbstractRector
{
+ /**
+ * @readonly
+ * @var \Rector\Comments\NodeDocBlock\DocBlockUpdater
+ */
+ private $docBlockUpdater;
+ /**
+ * @readonly
+ * @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
+ */
+ private $phpDocInfoFactory;
private const EXTENDS_TAG_NAME = '@extends';
private const FACTORY_CLASS_NAME = 'Illuminate\Database\Eloquent\Factories\Factory';
- public function __construct(
- private readonly DocBlockUpdater $docBlockUpdater,
- private readonly PhpDocInfoFactory $phpDocInfoFactory,
- ) {
+ public function __construct(DocBlockUpdater $docBlockUpdater, PhpDocInfoFactory $phpDocInfoFactory)
+ {
+ $this->docBlockUpdater = $docBlockUpdater;
+ $this->phpDocInfoFactory = $phpDocInfoFactory;
}
public function getRuleDefinition(): RuleDefinition
diff --git a/src/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector.php b/src/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector.php
index 21a9d932..8bd2c937 100644
--- a/src/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector.php
+++ b/src/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector.php
@@ -33,15 +33,39 @@
*/
final class AddMockConsoleOutputFalseToConsoleTestsRector extends AbstractRector
{
- public function __construct(
- private readonly PropertyFetchAnalyzer $propertyFetchAnalyzer,
- private readonly SetUpMethodDecorator $setUpMethodDecorator,
- private readonly VisibilityManipulator $visibilityManipulator,
- private readonly BetterNodeFinder $betterNodeFinder,
- private readonly ValueResolver $valueResolver,
- ) {
+ /**
+ * @readonly
+ * @var \Rector\NodeAnalyzer\PropertyFetchAnalyzer
+ */
+ private $propertyFetchAnalyzer;
+ /**
+ * @readonly
+ * @var \Rector\PHPUnit\NodeAnalyzer\SetUpMethodDecorator
+ */
+ private $setUpMethodDecorator;
+ /**
+ * @readonly
+ * @var \Rector\Privatization\NodeManipulator\VisibilityManipulator
+ */
+ private $visibilityManipulator;
+ /**
+ * @readonly
+ * @var \Rector\PhpParser\Node\BetterNodeFinder
+ */
+ private $betterNodeFinder;
+ /**
+ * @readonly
+ * @var \Rector\PhpParser\Node\Value\ValueResolver
+ */
+ private $valueResolver;
+ public function __construct(PropertyFetchAnalyzer $propertyFetchAnalyzer, SetUpMethodDecorator $setUpMethodDecorator, VisibilityManipulator $visibilityManipulator, BetterNodeFinder $betterNodeFinder, ValueResolver $valueResolver)
+ {
+ $this->propertyFetchAnalyzer = $propertyFetchAnalyzer;
+ $this->setUpMethodDecorator = $setUpMethodDecorator;
+ $this->visibilityManipulator = $visibilityManipulator;
+ $this->betterNodeFinder = $betterNodeFinder;
+ $this->valueResolver = $valueResolver;
}
-
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
diff --git a/src/Rector/Class_/AnonymousMigrationsRector.php b/src/Rector/Class_/AnonymousMigrationsRector.php
index 63a0b255..4d360a81 100644
--- a/src/Rector/Class_/AnonymousMigrationsRector.php
+++ b/src/Rector/Class_/AnonymousMigrationsRector.php
@@ -22,9 +22,14 @@
*/
final class AnonymousMigrationsRector extends AbstractRector
{
- public function __construct(
- private readonly ClassAnalyzer $classAnalyzer
- ) {
+ /**
+ * @readonly
+ * @var \Rector\NodeAnalyzer\ClassAnalyzer
+ */
+ private $classAnalyzer;
+ public function __construct(ClassAnalyzer $classAnalyzer)
+ {
+ $this->classAnalyzer = $classAnalyzer;
}
public function getRuleDefinition(): RuleDefinition
diff --git a/src/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector.php b/src/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector.php
index 231812bc..a1aee107 100644
--- a/src/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector.php
+++ b/src/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector.php
@@ -20,15 +20,20 @@
*/
final class LivewireComponentComputedMethodToComputedAttributeRector extends AbstractRector
{
+ /**
+ * @readonly
+ * @var \Rector\Php80\NodeAnalyzer\PhpAttributeAnalyzer
+ */
+ private $phpAttributeAnalyzer;
private const COMPUTED_ATTRIBUTE = 'Livewire\Attributes\Computed';
private const COMPONENT_CLASS = 'Livewire\Component';
private const METHOD_PATTERN = '/^get(?\'methodName\'[\w]*)Property$/';
- public function __construct(private readonly PhpAttributeAnalyzer $phpAttributeAnalyzer)
+ public function __construct(PhpAttributeAnalyzer $phpAttributeAnalyzer)
{
-
+ $this->phpAttributeAnalyzer = $phpAttributeAnalyzer;
}
public function getRuleDefinition(): RuleDefinition
@@ -45,7 +50,8 @@ public function getFooBarProperty()
{
}
}
-CODE_SAMPLE,
+CODE_SAMPLE
+,
<<<'CODE_SAMPLE'
use Livewire\Component;
diff --git a/src/Rector/Class_/LivewireComponentQueryStringToUrlAttributeRector.php b/src/Rector/Class_/LivewireComponentQueryStringToUrlAttributeRector.php
index 03f9a786..1d67ab9b 100644
--- a/src/Rector/Class_/LivewireComponentQueryStringToUrlAttributeRector.php
+++ b/src/Rector/Class_/LivewireComponentQueryStringToUrlAttributeRector.php
@@ -25,15 +25,20 @@
*/
final class LivewireComponentQueryStringToUrlAttributeRector extends AbstractRector
{
+ /**
+ * @readonly
+ * @var \Rector\Php80\NodeAnalyzer\PhpAttributeAnalyzer
+ */
+ private $phpAttributeAnalyzer;
private const URL_ATTRIBUTE = 'Livewire\Attributes\Url';
private const COMPONENT_CLASS = 'Livewire\Component';
private const QUERY_STRING_PROPERTY_NAME = 'queryString';
- public function __construct(private readonly PhpAttributeAnalyzer $phpAttributeAnalyzer)
+ public function __construct(PhpAttributeAnalyzer $phpAttributeAnalyzer)
{
-
+ $this->phpAttributeAnalyzer = $phpAttributeAnalyzer;
}
public function getRuleDefinition(): RuleDefinition
@@ -55,7 +60,8 @@ class MyComponent extends Component
'another',
];
}
-CODE_SAMPLE,
+CODE_SAMPLE
+,
<<<'CODE_SAMPLE'
use Livewire\Component;
@@ -172,10 +178,9 @@ private function findQueryStringProperties(Property $property): ?array
}
// we remove the array properties which will be converted
- $array->items = array_filter(
- $array->items,
- fn (?ArrayItem $arrayItem): bool => ! in_array($arrayItem, $toFilter, true),
- );
+ $array->items = array_filter($array->items, function (?ArrayItem $arrayItem) use ($toFilter) : bool {
+ return ! in_array($arrayItem, $toFilter, true);
+ });
return $properties;
}
@@ -191,7 +196,7 @@ private function addUrlAttributeToProperty(Property $property, array $args): voi
$property->attrGroups[] = new AttributeGroup([
new Attribute(
- new FullyQualified(self::URL_ATTRIBUTE), args: $args
+ new FullyQualified(self::URL_ATTRIBUTE), $args
),
]);
}
@@ -208,7 +213,7 @@ private function processArrayOptionsIntoArgs(Array_ $array): ?array
continue;
}
if ($item->key instanceof String_ && $item->value instanceof Scalar && in_array($item->key->value, ['except', 'as'], true)) {
- $args[] = new Arg($item->value, name: new Identifier($item->key->value));
+ $args[] = new Arg($item->value, false, false, [], new Identifier($item->key->value));
}
}
@@ -224,7 +229,9 @@ private function attemptQueryStringRemoval(Class_ $class, Property $property): v
$array = $property->props[0]->default;
if ($array instanceof Array_ && $array->items === []) {
- $class->stmts = array_filter($class->stmts, fn (Node $node) => $node !== $property);
+ $class->stmts = array_filter($class->stmts, function (Node $node) use ($property) {
+ return $node !== $property;
+ });
}
}
}
diff --git a/src/Rector/Class_/ModelCastsPropertyToCastsMethodRector.php b/src/Rector/Class_/ModelCastsPropertyToCastsMethodRector.php
index e531974e..0ce80278 100644
--- a/src/Rector/Class_/ModelCastsPropertyToCastsMethodRector.php
+++ b/src/Rector/Class_/ModelCastsPropertyToCastsMethodRector.php
@@ -22,18 +22,28 @@
*/
class ModelCastsPropertyToCastsMethodRector extends AbstractRector
{
- public function __construct(
- protected BuilderFactory $builderFactory,
- protected PhpDocInfoFactory $phpDocInfoFactory,
- protected DocBlockUpdater $docBlockUpdater,
- ) {
+ /**
+ * @var \PhpParser\BuilderFactory
+ */
+ protected $builderFactory;
+ /**
+ * @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
+ */
+ protected $phpDocInfoFactory;
+ /**
+ * @var \Rector\Comments\NodeDocBlock\DocBlockUpdater
+ */
+ protected $docBlockUpdater;
+ public function __construct(BuilderFactory $builderFactory, PhpDocInfoFactory $phpDocInfoFactory, DocBlockUpdater $docBlockUpdater)
+ {
+ $this->builderFactory = $builderFactory;
+ $this->phpDocInfoFactory = $phpDocInfoFactory;
+ $this->docBlockUpdater = $docBlockUpdater;
}
-
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition('Refactor Model $casts property with casts() method', [
- new CodeSample(
- <<<'CODE_SAMPLE'
+ new CodeSample(<<<'CODE_SAMPLE'
use Illuminate\Database\Eloquent\Model;
class Person extends Model
@@ -42,8 +52,8 @@ class Person extends Model
'age' => 'integer',
];
}
-CODE_SAMPLE,
- <<<'CODE_SAMPLE'
+CODE_SAMPLE
+, <<<'CODE_SAMPLE'
use Illuminate\Database\Eloquent\Model;
class Person extends Model
@@ -55,8 +65,8 @@ protected function casts(): array
];
}
}
-CODE_SAMPLE,
- ),
+CODE_SAMPLE
+),
]);
}
@@ -110,7 +120,10 @@ public function refactor(Node $node): ?Class_
return null;
}
- private function restorePhpDoc(ClassMethod|Node $methodNode): void
+ /**
+ * @param \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node $methodNode
+ */
+ private function restorePhpDoc($methodNode): void
{
$phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($methodNode);
diff --git a/src/Rector/Class_/PropertyDeferToDeferrableProviderToRector.php b/src/Rector/Class_/PropertyDeferToDeferrableProviderToRector.php
index ce320866..b225e5ba 100644
--- a/src/Rector/Class_/PropertyDeferToDeferrableProviderToRector.php
+++ b/src/Rector/Class_/PropertyDeferToDeferrableProviderToRector.php
@@ -22,11 +22,15 @@
*/
final class PropertyDeferToDeferrableProviderToRector extends AbstractRector
{
- public function __construct(
- private readonly ValueResolver $valueResolver,
- ) {
+ /**
+ * @readonly
+ * @var \Rector\PhpParser\Node\Value\ValueResolver
+ */
+ private $valueResolver;
+ public function __construct(ValueResolver $valueResolver)
+ {
+ $this->valueResolver = $valueResolver;
}
-
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
diff --git a/src/Rector/Class_/ReplaceExpectsMethodsInTestsRector.php b/src/Rector/Class_/ReplaceExpectsMethodsInTestsRector.php
index d9cf3a97..9c9f87fd 100644
--- a/src/Rector/Class_/ReplaceExpectsMethodsInTestsRector.php
+++ b/src/Rector/Class_/ReplaceExpectsMethodsInTestsRector.php
@@ -135,11 +135,17 @@ public function refactor(Node $node): ?Class_
continue;
}
- $facade = match ($methodCall->name->name) {
- 'expectsJobs' => 'Bus',
- 'expectsEvents' => 'Event',
- default => null,
- };
+ switch ($methodCall->name->name) {
+ case 'expectsJobs':
+ $facade = 'Bus';
+ break;
+ case 'expectsEvents':
+ $facade = 'Event';
+ break;
+ default:
+ $facade = null;
+ break;
+ }
if ($facade === null) {
continue;
diff --git a/src/Rector/Class_/UnifyModelDatesWithCastsRector.php b/src/Rector/Class_/UnifyModelDatesWithCastsRector.php
index 2cbda521..bec215bf 100644
--- a/src/Rector/Class_/UnifyModelDatesWithCastsRector.php
+++ b/src/Rector/Class_/UnifyModelDatesWithCastsRector.php
@@ -27,13 +27,27 @@
*/
final class UnifyModelDatesWithCastsRector extends AbstractRector
{
- public function __construct(
- private readonly ClassInsertManipulator $classInsertManipulator,
- private readonly ValueResolver $valueResolver,
- private readonly PhpDocInfoFactory $phpDocInfoFactory,
- ) {
+ /**
+ * @readonly
+ * @var \Rector\NodeManipulator\ClassInsertManipulator
+ */
+ private $classInsertManipulator;
+ /**
+ * @readonly
+ * @var \Rector\PhpParser\Node\Value\ValueResolver
+ */
+ private $valueResolver;
+ /**
+ * @readonly
+ * @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
+ */
+ private $phpDocInfoFactory;
+ public function __construct(ClassInsertManipulator $classInsertManipulator, ValueResolver $valueResolver, PhpDocInfoFactory $phpDocInfoFactory)
+ {
+ $this->classInsertManipulator = $classInsertManipulator;
+ $this->valueResolver = $valueResolver;
+ $this->phpDocInfoFactory = $phpDocInfoFactory;
}
-
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition('Unify Model $dates property with $casts', [
diff --git a/src/Rector/Expr/AppEnvironmentComparisonToParameterRector.php b/src/Rector/Expr/AppEnvironmentComparisonToParameterRector.php
index edcc28d1..42f5bd86 100644
--- a/src/Rector/Expr/AppEnvironmentComparisonToParameterRector.php
+++ b/src/Rector/Expr/AppEnvironmentComparisonToParameterRector.php
@@ -45,7 +45,10 @@ public function getNodeTypes(): array
return [Expr::class];
}
- public function refactor(Node $node): MethodCall|StaticCall|null
+ /**
+ * @return \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall|null
+ */
+ public function refactor(Node $node)
{
if (! $node instanceof Identical && ! $node instanceof Equal) {
return null;
@@ -55,10 +58,12 @@ public function refactor(Node $node): MethodCall|StaticCall|null
$methodCall = array_values(
array_filter(
[$node->left, $node->right],
- fn ($node) => ($node instanceof MethodCall || $node instanceof StaticCall) && $this->isName(
- $node->name,
- 'environment'
- )
+ function ($node) {
+ return ($node instanceof MethodCall || $node instanceof StaticCall) && $this->isName(
+ $node->name,
+ 'environment'
+ );
+ }
)
)[0] ?? null;
@@ -68,7 +73,9 @@ public function refactor(Node $node): MethodCall|StaticCall|null
/** @var Expr $otherNode */
$otherNode = array_values(
- array_filter([$node->left, $node->right], static fn ($node) => $node !== $methodCall)
+ array_filter([$node->left, $node->right], static function ($node) use ($methodCall) {
+ return $node !== $methodCall;
+ })
)[0] ?? null;
if (! $otherNode instanceof String_) {
@@ -85,22 +92,29 @@ public function refactor(Node $node): MethodCall|StaticCall|null
return $methodCall;
}
- private function validMethodCall(MethodCall|StaticCall $methodCall): bool
+ /**
+ * @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall $methodCall
+ */
+ private function validMethodCall($methodCall): bool
{
- return match (true) {
- $methodCall instanceof MethodCall && $this->isObjectType(
+ switch (true) {
+ case $methodCall instanceof MethodCall && $this->isObjectType(
$methodCall->var,
new ObjectType('Illuminate\Contracts\Foundation\Application')
- ) => true,
- $methodCall instanceof StaticCall && $this->isObjectType(
+ ):
+ return true;
+ case $methodCall instanceof StaticCall && $this->isObjectType(
$methodCall->class,
new ObjectType('Illuminate\Support\Facades\App')
- ) => true,
- $methodCall instanceof StaticCall && $this->isObjectType(
+ ):
+ return true;
+ case $methodCall instanceof StaticCall && $this->isObjectType(
$methodCall->class,
new ObjectType('App')
- ) => true,
- default => false,
- };
+ ):
+ return true;
+ default:
+ return false;
+ }
}
}
diff --git a/src/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/SubStrToStartsWithOrEndsWithStaticMethodCallRector.php b/src/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/SubStrToStartsWithOrEndsWithStaticMethodCallRector.php
index 90186cdb..0513bcec 100644
--- a/src/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/SubStrToStartsWithOrEndsWithStaticMethodCallRector.php
+++ b/src/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/SubStrToStartsWithOrEndsWithStaticMethodCallRector.php
@@ -20,28 +20,27 @@
*/
class SubStrToStartsWithOrEndsWithStaticMethodCallRector extends AbstractRector
{
- public function __construct(
- private readonly ValueResolver $valueResolver,
- ) {
+ /**
+ * @readonly
+ * @var \Rector\PhpParser\Node\Value\ValueResolver
+ */
+ private $valueResolver;
+ public function __construct(ValueResolver $valueResolver)
+ {
+ $this->valueResolver = $valueResolver;
}
-
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition('Use Str::startsWith() or Str::endsWith() instead of substr() === $str', [
- new CodeSample(
- <<<'CODE_SAMPLE'
+ new CodeSample(<<<'CODE_SAMPLE'
if (substr($str, 0, 3) === 'foo') {
// do something
}
-CODE_SAMPLE
- ,
- <<<'CODE_SAMPLE'
+CODE_SAMPLE, <<<'CODE_SAMPLE'
if (Str::startsWith($str, 'foo')) {
// do something
}
-CODE_SAMPLE
- ,
- ),
+CODE_SAMPLE),
]);
}
@@ -61,10 +60,12 @@ public function refactor(Node $node): ?StaticCall
/** @var Expr\FuncCall|null $functionCall */
$functionCall = array_values(
- array_filter([$node->left, $node->right], fn ($node) => $node instanceof FuncCall && $this->isName(
- $node,
- 'substr'
- ))
+ array_filter([$node->left, $node->right], function ($node) {
+ return $node instanceof FuncCall && $this->isName(
+ $node,
+ 'substr'
+ );
+ })
)[0] ?? null;
if (! $functionCall instanceof FuncCall) {
@@ -73,7 +74,9 @@ public function refactor(Node $node): ?StaticCall
/** @var Expr $otherNode */
$otherNode = array_values(
- array_filter([$node->left, $node->right], static fn ($node) => $node !== $functionCall)
+ array_filter([$node->left, $node->right], static function ($node) use ($functionCall) {
+ return $node !== $functionCall;
+ })
)[0] ?? null;
// get the function call second argument value
diff --git a/src/Rector/FuncCall/ArgumentFuncCallToMethodCallRector.php b/src/Rector/FuncCall/ArgumentFuncCallToMethodCallRector.php
index 9f6d0f3f..14e60fdb 100644
--- a/src/Rector/FuncCall/ArgumentFuncCallToMethodCallRector.php
+++ b/src/Rector/FuncCall/ArgumentFuncCallToMethodCallRector.php
@@ -28,15 +28,25 @@
*/
final class ArgumentFuncCallToMethodCallRector extends AbstractRector implements ConfigurableRectorInterface
{
+ /**
+ * @readonly
+ * @var \Rector\NodeTypeResolver\TypeAnalyzer\ArrayTypeAnalyzer
+ */
+ private $arrayTypeAnalyzer;
+ /**
+ * @readonly
+ * @var \Rector\Transform\NodeAnalyzer\FuncCallStaticCallToMethodCallAnalyzer
+ */
+ private $funcCallStaticCallToMethodCallAnalyzer;
/**
* @var ArgumentFuncCallToMethodCallInterface[]
*/
- private array $argumentFuncCallToMethodCalls = [];
+ private $argumentFuncCallToMethodCalls = [];
- public function __construct(
- private readonly ArrayTypeAnalyzer $arrayTypeAnalyzer,
- private readonly FuncCallStaticCallToMethodCallAnalyzer $funcCallStaticCallToMethodCallAnalyzer
- ) {
+ public function __construct(ArrayTypeAnalyzer $arrayTypeAnalyzer, FuncCallStaticCallToMethodCallAnalyzer $funcCallStaticCallToMethodCallAnalyzer)
+ {
+ $this->arrayTypeAnalyzer = $arrayTypeAnalyzer;
+ $this->funcCallStaticCallToMethodCallAnalyzer = $funcCallStaticCallToMethodCallAnalyzer;
}
public function getRuleDefinition(): RuleDefinition
@@ -120,11 +130,7 @@ public function refactor(Node $node): ?Node
}
if ($argumentFuncCallToMethodCall instanceof ArgumentFuncCallToMethodCall) {
- $expr = $this->funcCallStaticCallToMethodCallAnalyzer->matchTypeProvidingExpr(
- $class,
- $classMethod,
- new ObjectType($argumentFuncCallToMethodCall->getClass()),
- );
+ $expr = $this->funcCallStaticCallToMethodCallAnalyzer->matchTypeProvidingExpr($class, $classMethod, new ObjectType($argumentFuncCallToMethodCall->getClass()));
$hasChanged = true;
@@ -132,11 +138,7 @@ public function refactor(Node $node): ?Node
}
if ($argumentFuncCallToMethodCall instanceof ArrayFuncCallToMethodCall) {
- $expr = $this->funcCallStaticCallToMethodCallAnalyzer->matchTypeProvidingExpr(
- $class,
- $classMethod,
- new ObjectType($argumentFuncCallToMethodCall->getClass()),
- );
+ $expr = $this->funcCallStaticCallToMethodCallAnalyzer->matchTypeProvidingExpr($class, $classMethod, new ObjectType($argumentFuncCallToMethodCall->getClass()));
$hasChanged = true;
@@ -169,11 +171,15 @@ public function configure(array $configuration): void
$this->argumentFuncCallToMethodCalls = $configuration;
}
+ /**
+ * @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\PropertyFetch|\PhpParser\Node\Expr\Variable $expr
+ * @return \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\PropertyFetch|\PhpParser\Node\Expr\Variable
+ */
public function refactorFuncCallToMethodCall(
FuncCall $funcCall,
ArgumentFuncCallToMethodCall $argumentFuncCallToMethodCall,
- MethodCall|PropertyFetch|Variable $expr
- ): MethodCall|PropertyFetch|Variable {
+ $expr
+ ) {
if ($funcCall->args === []) {
return $this->refactorEmptyFuncCallArgs($argumentFuncCallToMethodCall, $expr);
}
@@ -187,10 +193,13 @@ public function refactorFuncCallToMethodCall(
return $this->nodeFactory->createMethodCall($expr, $methodIfArgs, $funcCall->args);
}
+ /**
+ * @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\PropertyFetch|\PhpParser\Node\Expr\Variable $expr
+ */
private function refactorArrayFunctionToMethodCall(
FuncCall $funcCall,
ArrayFuncCallToMethodCall $arrayFuncCallToMethodCall,
- MethodCall|PropertyFetch|Variable $expr
+ $expr
): ?Node {
if ($funcCall->getArgs() === []) {
return $expr;
@@ -207,10 +216,14 @@ private function refactorArrayFunctionToMethodCall(
return new MethodCall($expr, $arrayFuncCallToMethodCall->getNonArrayMethod(), $funcCall->getArgs());
}
+ /**
+ * @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\PropertyFetch|\PhpParser\Node\Expr\Variable $expr
+ * @return \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\PropertyFetch|\PhpParser\Node\Expr\Variable
+ */
private function refactorEmptyFuncCallArgs(
ArgumentFuncCallToMethodCall $argumentFuncCallToMethodCall,
- MethodCall|PropertyFetch|Variable $expr
- ): MethodCall|PropertyFetch|Variable {
+ $expr
+ ) {
if ($argumentFuncCallToMethodCall->getMethodIfNoArgs() !== null) {
return $this->nodeFactory->createMethodCall($expr, $argumentFuncCallToMethodCall->getMethodIfNoArgs());
}
diff --git a/src/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector.php b/src/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector.php
index 29f6eddb..89527050 100644
--- a/src/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector.php
+++ b/src/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector.php
@@ -25,16 +25,34 @@
*/
class DispatchNonShouldQueueToDispatchSyncRector extends AbstractRector
{
- private const string SHOULD_QUEUE_INTERFACE = 'Illuminate\Contracts\Queue\ShouldQueue';
+ /**
+ * @readonly
+ * @var \PHPStan\Reflection\ReflectionProvider
+ */
+ private $reflectionProvider;
+ /**
+ * @var string
+ */
+ private const SHOULD_QUEUE_INTERFACE = 'Illuminate\Contracts\Queue\ShouldQueue';
- private const string BUS_FACADE = 'Illuminate\Support\Facades\Bus';
+ /**
+ * @var string
+ */
+ private const BUS_FACADE = 'Illuminate\Support\Facades\Bus';
- private const string DISPATCHER_INTERFACE = 'Illuminate\Contracts\Bus\Dispatcher';
+ /**
+ * @var string
+ */
+ private const DISPATCHER_INTERFACE = 'Illuminate\Contracts\Bus\Dispatcher';
- private const string DISPATCHABLE_TRAIT = 'Illuminate\Foundation\Bus\Dispatchable';
+ /**
+ * @var string
+ */
+ private const DISPATCHABLE_TRAIT = 'Illuminate\Foundation\Bus\Dispatchable';
- public function __construct(private readonly ReflectionProvider $reflectionProvider)
+ public function __construct(ReflectionProvider $reflectionProvider)
{
+ $this->reflectionProvider = $reflectionProvider;
}
public function getRuleDefinition(): RuleDefinition
@@ -66,8 +84,9 @@ public function getNodeTypes(): array
/**
* @param FuncCall|MethodCall|StaticCall $node
+ * @return \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall|null
*/
- public function refactor(Node $node): FuncCall|MethodCall|StaticCall|null
+ public function refactor(Node $node)
{
if (
$this->isName($node->name, 'dispatch') &&
@@ -98,7 +117,11 @@ public function refactor(Node $node): FuncCall|MethodCall|StaticCall|null
return null;
}
- private function processCall(FuncCall|MethodCall|StaticCall $call): FuncCall|MethodCall|StaticCall|null
+ /**
+ * @param \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall $call
+ * @return \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall|null
+ */
+ private function processCall($call)
{
if (! $call->args[0] instanceof Arg) {
return null;
@@ -118,9 +141,7 @@ private function processCall(FuncCall|MethodCall|StaticCall $call): FuncCall|Met
// Queued closures can only be dispatched from the helper
if (
! ($call instanceof StaticCall && $this->isCallOnBusFacade($call)) && (
- $this->getType(
- $call->args[0]->value,
- ) instanceof ClosureType ||
+ $this->getType($call->args[0]->value) instanceof ClosureType ||
$call->args[0]->value instanceof Closure ||
$call->args[0]->value instanceof ArrowFunction
)
@@ -150,7 +171,7 @@ private function isDispatchablesCall(MethodCall $methodCall): bool
return true;
}
- } catch (ClassNotFoundException) {
+ } catch (ClassNotFoundException $exception) {
}
return false;
@@ -159,10 +180,8 @@ private function isDispatchablesCall(MethodCall $methodCall): bool
private function isSubclassOfShouldQueueInterface(AliasedObjectType $aliasedObjectType): bool
{
try {
- $reflection = $this->reflectionProvider->getClass(
- $aliasedObjectType->getFullyQualifiedName(),
- );
- } catch (ClassNotFoundException) {
+ $reflection = $this->reflectionProvider->getClass($aliasedObjectType->getFullyQualifiedName());
+ } catch (ClassNotFoundException $exception) {
return false;
}
diff --git a/src/Rector/FuncCall/RemoveDumpDataDeadCodeRector.php b/src/Rector/FuncCall/RemoveDumpDataDeadCodeRector.php
index b90bc78c..ca1d9cca 100644
--- a/src/Rector/FuncCall/RemoveDumpDataDeadCodeRector.php
+++ b/src/Rector/FuncCall/RemoveDumpDataDeadCodeRector.php
@@ -69,8 +69,9 @@ public function getNodeTypes(): array
/**
* @param Expression $node
+ * @return int|\PhpParser\Node|mixed[]|null
*/
- public function refactor(Node $node): int|Node|array|null
+ public function refactor(Node $node)
{
if (! $node->expr instanceof FuncCall) {
return null;
diff --git a/src/Rector/FuncCall/SleepFuncToSleepStaticCallRector.php b/src/Rector/FuncCall/SleepFuncToSleepStaticCallRector.php
index 3d428376..bc9f9471 100644
--- a/src/Rector/FuncCall/SleepFuncToSleepStaticCallRector.php
+++ b/src/Rector/FuncCall/SleepFuncToSleepStaticCallRector.php
@@ -21,16 +21,11 @@ public function getRuleDefinition(): RuleDefinition
return new RuleDefinition(
'Use Sleep::sleep() and Sleep::usleep() instead of the sleep() and usleep() function.',
[
- new CodeSample(
- <<<'CODE_SAMPLE'
+ new CodeSample(<<<'CODE_SAMPLE'
sleep(5);
-CODE_SAMPLE
- ,
- <<<'CODE_SAMPLE'
+CODE_SAMPLE, <<<'CODE_SAMPLE'
\Illuminate\Support\Sleep::sleep(5);
-CODE_SAMPLE
- ,
- ),
+CODE_SAMPLE),
]
);
}
diff --git a/src/Rector/FuncCall/ThrowIfAndThrowUnlessExceptionsToUseClassStringRector.php b/src/Rector/FuncCall/ThrowIfAndThrowUnlessExceptionsToUseClassStringRector.php
index 3ff2ddbe..7752ee07 100644
--- a/src/Rector/FuncCall/ThrowIfAndThrowUnlessExceptionsToUseClassStringRector.php
+++ b/src/Rector/FuncCall/ThrowIfAndThrowUnlessExceptionsToUseClassStringRector.php
@@ -20,14 +20,13 @@ class ThrowIfAndThrowUnlessExceptionsToUseClassStringRector extends AbstractRect
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition('changes use of a new throw instance to class string', [
- new CodeSample(
- <<<'CODE_SAMPLE'
+ new CodeSample(<<<'CODE_SAMPLE'
throw_if($condition, new MyException('custom message'));
-CODE_SAMPLE,
- <<<'CODE_SAMPLE'
+CODE_SAMPLE
+, <<<'CODE_SAMPLE'
throw_if($condition, MyException::class, 'custom message');
-CODE_SAMPLE,
- ),
+CODE_SAMPLE
+),
]);
}
@@ -61,10 +60,7 @@ public function refactor(Node $node): ?FuncCall
// convert the class to a class string
$node->args[1] = new Arg(new ClassConstFetch($class, 'class'));
- $node->args = [
- ...$node->args,
- ...$exception->getArgs(),
- ];
+ $node->args = array_merge(is_array($node->args) ? $node->args : iterator_to_array($node->args), $exception->getArgs());
return $node;
}
diff --git a/src/Rector/FuncCall/TypeHintTappableCallRector.php b/src/Rector/FuncCall/TypeHintTappableCallRector.php
index 3c7a2e92..1f08965c 100644
--- a/src/Rector/FuncCall/TypeHintTappableCallRector.php
+++ b/src/Rector/FuncCall/TypeHintTappableCallRector.php
@@ -20,12 +20,22 @@
*/
class TypeHintTappableCallRector extends AbstractRector
{
+ /**
+ * @readonly
+ * @var \Rector\NodeTypeResolver\TypeComparator\TypeComparator
+ */
+ private $typeComparator;
+ /**
+ * @readonly
+ * @var \Rector\StaticTypeMapper\StaticTypeMapper
+ */
+ private $staticTypeMapper;
private const TAPPABLE_TRAIT = 'Illuminate\Support\Traits\Tappable';
- public function __construct(
- private readonly TypeComparator $typeComparator,
- private readonly StaticTypeMapper $staticTypeMapper
- ) {
+ public function __construct(TypeComparator $typeComparator, StaticTypeMapper $staticTypeMapper)
+ {
+ $this->typeComparator = $typeComparator;
+ $this->staticTypeMapper = $staticTypeMapper;
}
public function getRuleDefinition(): RuleDefinition
@@ -35,14 +45,16 @@ public function getRuleDefinition(): RuleDefinition
[
new CodeSample(<<<'CODE_SAMPLE'
tap($collection, function ($collection) {}
-CODE_SAMPLE,
+CODE_SAMPLE
+,
<<<'CODE_SAMPLE'
tap($collection, function (Collection $collection) {}
CODE_SAMPLE
),
new CodeSample(<<<'CODE_SAMPLE'
(new Collection)->tap(function ($collection) {}
-CODE_SAMPLE,
+CODE_SAMPLE
+,
<<<'CODE_SAMPLE'
(new Collection)->tap(function (Collection $collection) {}
CODE_SAMPLE
diff --git a/src/Rector/If_/AbortIfRector.php b/src/Rector/If_/AbortIfRector.php
index a199c917..a97180c2 100644
--- a/src/Rector/If_/AbortIfRector.php
+++ b/src/Rector/If_/AbortIfRector.php
@@ -75,16 +75,10 @@ public function refactor(Node $node): ?Node
// Check if the condition is a negation
if ($condition instanceof BooleanNot) {
// Create a new throw_unless function call
- return new Expression(new FuncCall(new Name('abort_unless'), [
- new Arg($condition->expr),
- ...$abortCall->args,
- ]));
+ return new Expression(new FuncCall(new Name('abort_unless'), array_merge([new Arg($condition->expr)], $abortCall->args)));
} else {
// Create a new throw_if function call
- return new Expression(new FuncCall(new Name('abort_if'), [
- new Arg($condition),
- ...$abortCall->args,
- ]));
+ return new Expression(new FuncCall(new Name('abort_if'), array_merge([new Arg($condition)], $abortCall->args)));
}
}
@@ -100,7 +94,7 @@ private function exceptionUsesVariablesAssignedByCondition(Expr $throwExpr, Expr
$conditionVariables = [];
$returnValue = false;
- $this->traverseNodesWithCallable($condition, function (Node $node) use (&$conditionVariables): null {
+ $this->traverseNodesWithCallable($condition, function (Node $node) use (&$conditionVariables) {
if ($node instanceof Assign) {
$conditionVariables[] = $this->getName($node->var);
}
diff --git a/src/Rector/If_/ReportIfRector.php b/src/Rector/If_/ReportIfRector.php
index 837c6acd..24f11e62 100644
--- a/src/Rector/If_/ReportIfRector.php
+++ b/src/Rector/If_/ReportIfRector.php
@@ -75,16 +75,10 @@ public function refactor(Node $node): ?Node
// Check if the condition is a negation
if ($condition instanceof BooleanNot) {
// Create a new throw_unless function call
- return new Expression(new FuncCall(new Name('report_unless'), [
- new Arg($condition->expr),
- ...$abortCall->args,
- ]));
+ return new Expression(new FuncCall(new Name('report_unless'), array_merge([new Arg($condition->expr)], $abortCall->args)));
} else {
// Create a new throw_if function call
- return new Expression(new FuncCall(new Name('report_if'), [
- new Arg($condition),
- ...$abortCall->args,
- ]));
+ return new Expression(new FuncCall(new Name('report_if'), array_merge([new Arg($condition)], $abortCall->args)));
}
}
@@ -100,7 +94,7 @@ private function exceptionUsesVariablesAssignedByCondition(Expr $throwExpr, Expr
$conditionVariables = [];
$returnValue = false;
- $this->traverseNodesWithCallable($condition, function (Node $node) use (&$conditionVariables): null {
+ $this->traverseNodesWithCallable($condition, function (Node $node) use (&$conditionVariables) {
if ($node instanceof Assign) {
$conditionVariables[] = $this->getName($node->var);
}
diff --git a/src/Rector/If_/ThrowIfRector.php b/src/Rector/If_/ThrowIfRector.php
index 0bebf54b..c959dae3 100644
--- a/src/Rector/If_/ThrowIfRector.php
+++ b/src/Rector/If_/ThrowIfRector.php
@@ -94,7 +94,7 @@ private function exceptionUsesVariablesAssignedByCondition(Expr $throwExpr, Expr
$conditionVariables = [];
$returnValue = false;
- $this->traverseNodesWithCallable($condition, function (Node $node) use (&$conditionVariables): null {
+ $this->traverseNodesWithCallable($condition, function (Node $node) use (&$conditionVariables) {
if ($node instanceof Assign) {
$conditionVariables[] = $this->getName($node->var);
}
diff --git a/src/Rector/MethodCall/AssertStatusToAssertMethodRector.php b/src/Rector/MethodCall/AssertStatusToAssertMethodRector.php
index de46f0f4..7bd6de5d 100644
--- a/src/Rector/MethodCall/AssertStatusToAssertMethodRector.php
+++ b/src/Rector/MethodCall/AssertStatusToAssertMethodRector.php
@@ -217,19 +217,41 @@ private function updateAssertStatusCall(MethodCall $methodCall): ?MethodCall
}
if ($argValue instanceof LNumber) {
- $replacementMethod = match ($argValue->value) {
- 200 => 'assertOk',
- 204 => 'assertNoContent',
- 401 => 'assertUnauthorized',
- 403 => 'assertForbidden',
- 404 => 'assertNotFound',
- 405 => 'assertMethodNotAllowed',
- 410 => 'assertGone',
- 422 => 'assertUnprocessable',
- 500 => 'assertInternalServerError',
- 503 => 'assertServiceUnavailable',
- default => null
- };
+ switch ($argValue->value) {
+ case 200:
+ $replacementMethod = 'assertOk';
+ break;
+ case 204:
+ $replacementMethod = 'assertNoContent';
+ break;
+ case 401:
+ $replacementMethod = 'assertUnauthorized';
+ break;
+ case 403:
+ $replacementMethod = 'assertForbidden';
+ break;
+ case 404:
+ $replacementMethod = 'assertNotFound';
+ break;
+ case 405:
+ $replacementMethod = 'assertMethodNotAllowed';
+ break;
+ case 410:
+ $replacementMethod = 'assertGone';
+ break;
+ case 422:
+ $replacementMethod = 'assertUnprocessable';
+ break;
+ case 500:
+ $replacementMethod = 'assertInternalServerError';
+ break;
+ case 503:
+ $replacementMethod = 'assertServiceUnavailable';
+ break;
+ default:
+ $replacementMethod = null;
+ break;
+ }
} else {
if (! in_array($this->getName($argValue->class), [
'Illuminate\Http\Response',
@@ -238,19 +260,41 @@ private function updateAssertStatusCall(MethodCall $methodCall): ?MethodCall
return null;
}
- $replacementMethod = match ($this->getName($argValue->name)) {
- 'HTTP_OK' => 'assertOk',
- 'HTTP_NO_CONTENT' => 'assertNoContent',
- 'HTTP_UNAUTHORIZED' => 'assertUnauthorized',
- 'HTTP_FORBIDDEN' => 'assertForbidden',
- 'HTTP_NOT_FOUND' => 'assertNotFound',
- 'HTTP_METHOD_NOT_ALLOWED' => 'assertMethodNotAllowed',
- 'HTTP_GONE' => 'assertGone',
- 'HTTP_UNPROCESSABLE_ENTITY' => 'assertUnprocessable',
- 'HTTP_INTERNAL_SERVER_ERROR' => 'assertInternalServerError',
- 'HTTP_SERVICE_UNAVAILABLE' => 'assertServiceUnavailable',
- default => null
- };
+ switch ($this->getName($argValue->name)) {
+ case 'HTTP_OK':
+ $replacementMethod = 'assertOk';
+ break;
+ case 'HTTP_NO_CONTENT':
+ $replacementMethod = 'assertNoContent';
+ break;
+ case 'HTTP_UNAUTHORIZED':
+ $replacementMethod = 'assertUnauthorized';
+ break;
+ case 'HTTP_FORBIDDEN':
+ $replacementMethod = 'assertForbidden';
+ break;
+ case 'HTTP_NOT_FOUND':
+ $replacementMethod = 'assertNotFound';
+ break;
+ case 'HTTP_METHOD_NOT_ALLOWED':
+ $replacementMethod = 'assertMethodNotAllowed';
+ break;
+ case 'HTTP_GONE':
+ $replacementMethod = 'assertGone';
+ break;
+ case 'HTTP_UNPROCESSABLE_ENTITY':
+ $replacementMethod = 'assertUnprocessable';
+ break;
+ case 'HTTP_INTERNAL_SERVER_ERROR':
+ $replacementMethod = 'assertInternalServerError';
+ break;
+ case 'HTTP_SERVICE_UNAVAILABLE':
+ $replacementMethod = 'assertServiceUnavailable';
+ break;
+ default:
+ $replacementMethod = null;
+ break;
+ }
}
if ($replacementMethod === null) {
diff --git a/src/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector.php b/src/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector.php
index c7986632..b92e0295 100644
--- a/src/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector.php
+++ b/src/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector.php
@@ -27,11 +27,15 @@
*/
final class ChangeQueryWhereDateValueWithCarbonRector extends AbstractRector
{
- public function __construct(
- private readonly ValueResolver $valueResolver,
- ) {
+ /**
+ * @readonly
+ * @var \Rector\PhpParser\Node\Value\ValueResolver
+ */
+ private $valueResolver;
+ public function __construct(ValueResolver $valueResolver)
+ {
+ $this->valueResolver = $valueResolver;
}
-
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
@@ -78,8 +82,9 @@ public function getNodeTypes(): array
/**
* @param Expression $node
+ * @return \PhpParser\Node|mixed[]|int|null
*/
- public function refactor(Node $node): Node|array|int|null
+ public function refactor(Node $node)
{
if (! $node->expr instanceof MethodCall) {
return null;
diff --git a/src/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector.php b/src/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector.php
index af240382..58ed58ad 100644
--- a/src/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector.php
+++ b/src/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector.php
@@ -26,12 +26,12 @@ class EloquentOrderByToLatestOrOldestRector extends AbstractRector implements Co
/**
* @var string
*/
- final public const ALLOWED_PATTERNS = 'allowed_patterns';
+ public const ALLOWED_PATTERNS = 'allowed_patterns';
/**
* @var string[]
*/
- private array $allowedPatterns = [];
+ private $allowedPatterns = [];
public function getRuleDefinition(): RuleDefinition
{
diff --git a/src/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector.php b/src/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector.php
index 3b863b06..ec7e0677 100644
--- a/src/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector.php
+++ b/src/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector.php
@@ -71,7 +71,10 @@ public function refactor(Node $node): ?Node
return null;
}
- private function isWhereRelationMethodWithClosureOrArrowFunction(MethodCall|StaticCall $node): bool
+ /**
+ * @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall $node
+ */
+ private function isWhereRelationMethodWithClosureOrArrowFunction($node): bool
{
if (! $this->expectedObjectTypeAndMethodCall($node)) {
return false;
@@ -87,7 +90,10 @@ private function isWhereRelationMethodWithClosureOrArrowFunction(MethodCall|Stat
! ($node->getArgs()[$position]->value ?? null) instanceof ArrowFunction);
}
- private function changeClosureParamType(MethodCall|StaticCall $node): void
+ /**
+ * @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall $node
+ */
+ private function changeClosureParamType($node): void
{
// Morph methods have the closure in the 3rd position, others use the 2nd.
$position = $this->isNames(
@@ -112,30 +118,24 @@ private function changeClosureParamType(MethodCall|StaticCall $node): void
$param->type = new FullyQualified('Illuminate\Contracts\Database\Query\Builder');
}
- private function expectedObjectTypeAndMethodCall(MethodCall|StaticCall $node): bool
+ /**
+ * @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall $node
+ */
+ private function expectedObjectTypeAndMethodCall($node): bool
{
- return match (true) {
- $node instanceof MethodCall && $this->isObjectType(
+ switch (true) {
+ case $node instanceof MethodCall && $this->isObjectType(
$node->var,
new ObjectType('Illuminate\Contracts\Database\Query\Builder')
- ) => true,
- $node instanceof StaticCall && $this->isObjectType(
+ ):
+ return true;
+ case $node instanceof StaticCall && $this->isObjectType(
$node->class,
new ObjectType('Illuminate\Database\Eloquent\Model')
- ) => true,
- default => false,
- } && $this->isNames(
- $node->name,
- [
- 'whereHas',
- 'orWhereHas',
- 'whereDoesntHave',
- 'orWhereDoesntHave',
- 'whereHasMorph',
- 'orWhereHasMorph',
- 'whereDoesntHaveMorph',
- 'orWhereDoesntHaveMorph',
- ]
- );
+ ):
+ return true;
+ default:
+ return false;
+ }
}
}
diff --git a/src/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector.php b/src/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector.php
index 966cf5dd..c5da74d8 100644
--- a/src/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector.php
+++ b/src/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector.php
@@ -26,20 +26,15 @@ public function getRuleDefinition(): RuleDefinition
return new RuleDefinition(
'Change typehint of closure parameter in where method of Eloquent Builder',
[
- new CodeSample(
- <<<'CODE_SAMPLE'
+ new CodeSample(<<<'CODE_SAMPLE'
$query->where(function ($query) {
$query->where('id', 1);
});
-CODE_SAMPLE
- ,
- <<<'CODE_SAMPLE'
+CODE_SAMPLE, <<<'CODE_SAMPLE'
$query->where(function (\Illuminate\Contracts\Database\Eloquent\Builder $query) {
$query->where('id', 1);
});
-CODE_SAMPLE
- ,
- ),
+CODE_SAMPLE),
]
);
}
@@ -64,7 +59,10 @@ public function refactor(Node $node): ?Node
return null;
}
- private function isWhereMethodWithClosureOrArrowFunction(MethodCall|StaticCall $node): bool
+ /**
+ * @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall $node
+ */
+ private function isWhereMethodWithClosureOrArrowFunction($node): bool
{
if (! $this->expectedObjectTypeAndMethodCall($node)) {
return false;
@@ -74,7 +72,10 @@ private function isWhereMethodWithClosureOrArrowFunction(MethodCall|StaticCall $
! ($node->getArgs()[0]->value ?? null) instanceof ArrowFunction);
}
- private function changeClosureParamType(MethodCall|StaticCall $node): void
+ /**
+ * @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall $node
+ */
+ private function changeClosureParamType($node): void
{
/** @var ArrowFunction|Closure $closure */
$closure = $node->getArgs()[0]
@@ -93,18 +94,24 @@ private function changeClosureParamType(MethodCall|StaticCall $node): void
$param->type = new FullyQualified('Illuminate\Contracts\Database\Query\Builder');
}
- private function expectedObjectTypeAndMethodCall(MethodCall|StaticCall $node): bool
+ /**
+ * @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall $node
+ */
+ private function expectedObjectTypeAndMethodCall($node): bool
{
- return match (true) {
- $node instanceof MethodCall && $this->isObjectType(
+ switch (true) {
+ case $node instanceof MethodCall && $this->isObjectType(
$node->var,
new ObjectType('Illuminate\Contracts\Database\Query\Builder')
- ) => true,
- $node instanceof StaticCall && $this->isObjectType(
+ ):
+ return true;
+ case $node instanceof StaticCall && $this->isObjectType(
$node->class,
new ObjectType('Illuminate\Database\Eloquent\Model')
- ) => true,
- default => false,
- } && $this->isNames($node->name, ['where', 'orWhere']);
+ ):
+ return true;
+ default:
+ return false;
+ }
}
}
diff --git a/src/Rector/MethodCall/FactoryApplyingStatesRector.php b/src/Rector/MethodCall/FactoryApplyingStatesRector.php
index 079e5317..e3c89182 100644
--- a/src/Rector/MethodCall/FactoryApplyingStatesRector.php
+++ b/src/Rector/MethodCall/FactoryApplyingStatesRector.php
@@ -24,11 +24,15 @@
*/
final class FactoryApplyingStatesRector extends AbstractRector
{
- public function __construct(
- private readonly ValueResolver $valueResolver,
- ) {
+ /**
+ * @readonly
+ * @var \Rector\PhpParser\Node\Value\ValueResolver
+ */
+ private $valueResolver;
+ public function __construct(ValueResolver $valueResolver)
+ {
+ $this->valueResolver = $valueResolver;
}
-
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition('Call the state methods directly instead of specify the name of state.', [
@@ -90,6 +94,8 @@ private function getStatesFromArgs(array $args): array
return (array) $this->valueResolver->getValue($args[0]->value);
}
- return array_map(fn ($arg) => $arg instanceof Arg ? $this->valueResolver->getValue($arg->value) : null, $args);
+ return array_map(function ($arg) {
+ return $arg instanceof Arg ? $this->valueResolver->getValue($arg->value) : null;
+ }, $args);
}
}
diff --git a/src/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector.php b/src/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector.php
index ac26be08..130c3099 100644
--- a/src/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector.php
+++ b/src/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector.php
@@ -20,9 +20,14 @@
*/
final class LumenRoutesStringActionToUsesArrayRector extends AbstractRector
{
- public function __construct(
- private readonly LumenRouteRegisteringMethodAnalyzer $lumenRouteRegisteringMethodAnalyzer
- ) {
+ /**
+ * @readonly
+ * @var \RectorLaravel\NodeAnalyzer\LumenRouteRegisteringMethodAnalyzer
+ */
+ private $lumenRouteRegisteringMethodAnalyzer;
+ public function __construct(LumenRouteRegisteringMethodAnalyzer $lumenRouteRegisteringMethodAnalyzer)
+ {
+ $this->lumenRouteRegisteringMethodAnalyzer = $lumenRouteRegisteringMethodAnalyzer;
}
public function getRuleDefinition(): RuleDefinition
@@ -34,7 +39,8 @@ public function getRuleDefinition(): RuleDefinition
CODE_SAMPLE
, <<<'CODE_SAMPLE'
$router->get('/user', ['uses => 'UserController@get']);
-CODE_SAMPLE)]
+CODE_SAMPLE
+)]
);
}
diff --git a/src/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector.php b/src/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector.php
index 6ed3522b..32a948f8 100644
--- a/src/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector.php
+++ b/src/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector.php
@@ -19,9 +19,14 @@
*/
final class LumenRoutesStringMiddlewareToArrayRector extends AbstractRector
{
- public function __construct(
- private readonly LumenRouteRegisteringMethodAnalyzer $lumenRouteRegisteringMethodAnalyzer
- ) {
+ /**
+ * @readonly
+ * @var \RectorLaravel\NodeAnalyzer\LumenRouteRegisteringMethodAnalyzer
+ */
+ private $lumenRouteRegisteringMethodAnalyzer;
+ public function __construct(LumenRouteRegisteringMethodAnalyzer $lumenRouteRegisteringMethodAnalyzer)
+ {
+ $this->lumenRouteRegisteringMethodAnalyzer = $lumenRouteRegisteringMethodAnalyzer;
}
public function getRuleDefinition(): RuleDefinition
@@ -35,7 +40,8 @@ public function getRuleDefinition(): RuleDefinition
, <<<'CODE_SAMPLE'
$router->get('/user', ['middleware => ['test']]);
$router->post('/user', ['middleware => ['test', 'authentication']]);
-CODE_SAMPLE)]
+CODE_SAMPLE
+)]
);
}
diff --git a/src/Rector/MethodCall/RefactorBlueprintGeometryColumnsRector.php b/src/Rector/MethodCall/RefactorBlueprintGeometryColumnsRector.php
index b6f72c47..a69b90ed 100644
--- a/src/Rector/MethodCall/RefactorBlueprintGeometryColumnsRector.php
+++ b/src/Rector/MethodCall/RefactorBlueprintGeometryColumnsRector.php
@@ -23,11 +23,11 @@ public function getRuleDefinition(): RuleDefinition
'refactors calls with the pre Laravel 11 methods for blueprint geometry columns',
[new CodeSample(<<<'CODE_SAMPLE'
$blueprint->point('coordinates')->spatialIndex();
-CODE_SAMPLE,
- <<<'CODE_SAMPLE'
+CODE_SAMPLE
+, <<<'CODE_SAMPLE'
$blueprint->geometry('coordinates', 'point')->spatialIndex();
-CODE_SAMPLE,
- )]
+CODE_SAMPLE
+)]
);
}
diff --git a/src/Rector/MethodCall/ReplaceServiceContainerCallArgRector.php b/src/Rector/MethodCall/ReplaceServiceContainerCallArgRector.php
index fce7ee14..167e693b 100644
--- a/src/Rector/MethodCall/ReplaceServiceContainerCallArgRector.php
+++ b/src/Rector/MethodCall/ReplaceServiceContainerCallArgRector.php
@@ -28,7 +28,7 @@ class ReplaceServiceContainerCallArgRector extends AbstractRector implements Con
/**
* @var ReplaceServiceContainerCallArg[]
*/
- private array $replaceServiceContainerCallArgs = [];
+ private $replaceServiceContainerCallArgs = [];
public function getRuleDefinition(): RuleDefinition
{
@@ -37,19 +37,18 @@ public function getRuleDefinition(): RuleDefinition
<<<'CODE_SAMPLE'
app('encrypter')->encrypt('...');
\Illuminate\Support\Facades\Application::make('encrypter')->encrypt('...');
-CODE_SAMPLE,
+CODE_SAMPLE
+,
<<<'CODE_SAMPLE'
app(Illuminate\Contracts\Encryption\Encrypter::class)->encrypt('...');
\Illuminate\Support\Facades\Application::make(Illuminate\Contracts\Encryption\Encrypter::class)->encrypt('...');
-CODE_SAMPLE,
+CODE_SAMPLE
+,
[
- new ReplaceServiceContainerCallArg(
- 'encrypter',
- new ClassConstFetch(
- new Name('Illuminate\Contracts\Encryption\Encrypter'),
- 'class'
- ),
- ),
+ new ReplaceServiceContainerCallArg('encrypter', new ClassConstFetch(
+ new Name('Illuminate\Contracts\Encryption\Encrypter'),
+ 'class'
+ )),
]
)]
);
@@ -62,8 +61,9 @@ public function getNodeTypes(): array
/**
* @param MethodCall|StaticCall|FuncCall $node
+ * @return \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\FuncCall|null
*/
- public function refactor(Node $node): MethodCall|StaticCall|FuncCall|null
+ public function refactor(Node $node)
{
if (! $this->validMethodCall($node) &&
! $this->validFuncCall($node)) {
@@ -93,7 +93,10 @@ public function configure(array $configuration): void
$this->replaceServiceContainerCallArgs = $configuration;
}
- private function isMatchForChangeServiceContainerCallArgValue(Arg $arg, ClassConstFetch|string $oldService): bool
+ /**
+ * @param \PhpParser\Node\Expr\ClassConstFetch|string $oldService
+ */
+ private function isMatchForChangeServiceContainerCallArgValue(Arg $arg, $oldService): bool
{
if ($arg->value instanceof ClassConstFetch && $oldService instanceof ClassConstFetch) {
if ($arg->value->class instanceof Expr || $oldService->class instanceof Expr) {
@@ -108,7 +111,10 @@ private function isMatchForChangeServiceContainerCallArgValue(Arg $arg, ClassCon
return false;
}
- private function replaceCallArgValue(Arg $arg, ClassConstFetch|string $newService): void
+ /**
+ * @param \PhpParser\Node\Expr\ClassConstFetch|string $newService
+ */
+ private function replaceCallArgValue(Arg $arg, $newService): void
{
if ($newService instanceof ClassConstFetch) {
$arg->value = $newService;
@@ -119,7 +125,10 @@ private function replaceCallArgValue(Arg $arg, ClassConstFetch|string $newServic
$arg->value = new String_($newService);
}
- private function validMethodCall(StaticCall|MethodCall|FuncCall $node): bool
+ /**
+ * @param \PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\FuncCall $node
+ */
+ private function validMethodCall($node): bool
{
if (! $node instanceof MethodCall && ! $node instanceof StaticCall) {
return false;
@@ -133,15 +142,22 @@ private function validMethodCall(StaticCall|MethodCall|FuncCall $node): bool
return false;
}
- [$callObject, $class] = match (true) {
- $node instanceof MethodCall => [$node->var, 'Illuminate\Contracts\Container\Container'],
- $node instanceof StaticCall => [$node->class, 'Illuminate\Support\Facades\Application'],
- };
+ switch (true) {
+ case $node instanceof MethodCall:
+ [$callObject, $class] = [$node->var, 'Illuminate\Contracts\Container\Container'];
+ break;
+ case $node instanceof StaticCall:
+ [$callObject, $class] = [$node->class, 'Illuminate\Support\Facades\Application'];
+ break;
+ }
return $this->isObjectType($callObject, new ObjectType($class));
}
- private function validFuncCall(StaticCall|MethodCall|FuncCall $node): bool
+ /**
+ * @param \PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\FuncCall $node
+ */
+ private function validFuncCall($node): bool
{
if (! $node instanceof FuncCall) {
return false;
diff --git a/src/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector.php b/src/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector.php
index 68601ce3..162c7660 100644
--- a/src/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector.php
+++ b/src/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector.php
@@ -21,18 +21,17 @@ public function getRuleDefinition(): RuleDefinition
return new RuleDefinition(
'Replace `withoutJobs`, `withoutEvents` and `withoutNotifications` with Facade `fake`',
[
- new CodeSample(
- <<<'CODE_SAMPLE'
+ new CodeSample(<<<'CODE_SAMPLE'
$this->withoutJobs();
$this->withoutEvents();
$this->withoutNotifications();
-CODE_SAMPLE,
- <<<'CODE_SAMPLE'
+CODE_SAMPLE
+, <<<'CODE_SAMPLE'
\Illuminate\Support\Facades\Bus::fake();
\Illuminate\Support\Facades\Event::fake();
\Illuminate\Support\Facades\Notification::fake();
-CODE_SAMPLE,
- ),
+CODE_SAMPLE
+),
]
);
}
@@ -59,12 +58,20 @@ public function refactor(Node $node): ?StaticCall
return null;
}
- $facade = match ($node->name->name) {
- 'withoutJobs' => 'Bus',
- 'withoutEvents' => 'Event',
- 'withoutNotifications' => 'Notification',
- default => null,
- };
+ switch ($node->name->name) {
+ case 'withoutJobs':
+ $facade = 'Bus';
+ break;
+ case 'withoutEvents':
+ $facade = 'Event';
+ break;
+ case 'withoutNotifications':
+ $facade = 'Notification';
+ break;
+ default:
+ $facade = null;
+ break;
+ }
if ($facade === null) {
return null;
diff --git a/src/Rector/MethodCall/ReverseConditionableMethodCallRector.php b/src/Rector/MethodCall/ReverseConditionableMethodCallRector.php
index 871cd125..a7c45c02 100644
--- a/src/Rector/MethodCall/ReverseConditionableMethodCallRector.php
+++ b/src/Rector/MethodCall/ReverseConditionableMethodCallRector.php
@@ -26,14 +26,16 @@ public function getRuleDefinition(): RuleDefinition
[
new CodeSample(<<<'CODE_SAMPLE'
$conditionable->when(!$condition, function () {});
-CODE_SAMPLE,
+CODE_SAMPLE
+,
<<<'CODE_SAMPLE'
$conditionable->unless($condition, function () {});
CODE_SAMPLE
),
new CodeSample(<<<'CODE_SAMPLE'
$conditionable->unless(!$condition, function () {});
-CODE_SAMPLE,
+CODE_SAMPLE
+,
<<<'CODE_SAMPLE'
$conditionable->when($condition, function () {});
CODE_SAMPLE
diff --git a/src/Rector/MethodCall/UseComponentPropertyWithinCommandsRector.php b/src/Rector/MethodCall/UseComponentPropertyWithinCommandsRector.php
index 41fd8700..95d664f6 100644
--- a/src/Rector/MethodCall/UseComponentPropertyWithinCommandsRector.php
+++ b/src/Rector/MethodCall/UseComponentPropertyWithinCommandsRector.php
@@ -25,8 +25,7 @@ class UseComponentPropertyWithinCommandsRector extends AbstractRector
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition('Use $this->components property within commands', [
- new CodeSample(
- <<<'CODE_SAMPLE'
+ new CodeSample(<<<'CODE_SAMPLE'
use Illuminate\Console\Command;
class CommandWithComponents extends Command
@@ -39,9 +38,7 @@ public function handle()
$this->error('Error!');
}
}
-CODE_SAMPLE
- ,
- <<<'CODE_SAMPLE'
+CODE_SAMPLE, <<<'CODE_SAMPLE'
use Illuminate\Console\Command;
class CommandWithComponents extends Command
@@ -54,9 +51,7 @@ public function handle()
$this->components->error('Error!');
}
}
-CODE_SAMPLE
- ,
- ),
+CODE_SAMPLE),
]);
}
diff --git a/src/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector.php b/src/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector.php
index 5002ca0b..c6e6ed72 100644
--- a/src/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector.php
+++ b/src/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector.php
@@ -53,8 +53,9 @@ public function getNodeTypes(): array
/**
* @param MethodCall|StaticCall|ClassLike $node
+ * @return \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Stmt\ClassLike|null
*/
- public function refactor(Node $node): MethodCall|StaticCall|ClassLike|null
+ public function refactor(Node $node)
{
if ($node instanceof ClassLike) {
return $this->refactorClassMethod($node);
@@ -71,7 +72,9 @@ public function processValidationRules(Array_ $array): bool
if ($item instanceof ArrayItem && $item->value instanceof String_) {
$stringRules = $item->value->value;
$arrayRules = explode('|', $stringRules);
- $item->value = new Array_(array_map(static fn ($rule) => new ArrayItem(new String_($rule)), $arrayRules));
+ $item->value = new Array_(array_map(static function ($rule) {
+ return new ArrayItem(new String_($rule));
+ }, $arrayRules));
$changed = true;
}
}
@@ -79,7 +82,11 @@ public function processValidationRules(Array_ $array): bool
return $changed;
}
- private function refactorCall(StaticCall|MethodCall $node): StaticCall|MethodCall|null
+ /**
+ * @param \PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall $node
+ * @return \PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall|null
+ */
+ private function refactorCall($node)
{
if (
! $this->isName($node->name, 'make')
@@ -135,7 +142,7 @@ private function refactorClassMethod(ClassLike $classLike): ?ClassLike
}
$changed = false;
- $this->traverseNodesWithCallable($classMethod, function (Node $node) use (&$changed, &$hasChanged): Return_|int|null {
+ $this->traverseNodesWithCallable($classMethod, function (Node $node) use (&$changed, &$hasChanged) {
if ($changed) {
$hasChanged = true;
diff --git a/src/Rector/Namespace_/FactoryDefinitionRector.php b/src/Rector/Namespace_/FactoryDefinitionRector.php
index 0d4490a8..a91b81f0 100644
--- a/src/Rector/Namespace_/FactoryDefinitionRector.php
+++ b/src/Rector/Namespace_/FactoryDefinitionRector.php
@@ -31,9 +31,14 @@
*/
final class FactoryDefinitionRector extends AbstractRector
{
- public function __construct(
- private readonly ModelFactoryNodeFactory $modelFactoryNodeFactory
- ) {
+ /**
+ * @readonly
+ * @var \RectorLaravel\NodeFactory\ModelFactoryNodeFactory
+ */
+ private $modelFactoryNodeFactory;
+ public function __construct(ModelFactoryNodeFactory $modelFactoryNodeFactory)
+ {
+ $this->modelFactoryNodeFactory = $modelFactoryNodeFactory;
}
public function getRuleDefinition(): RuleDefinition
diff --git a/src/Rector/New_/AddGuardToLoginEventRector.php b/src/Rector/New_/AddGuardToLoginEventRector.php
index b6f5cc8b..067aa597 100644
--- a/src/Rector/New_/AddGuardToLoginEventRector.php
+++ b/src/Rector/New_/AddGuardToLoginEventRector.php
@@ -68,8 +68,9 @@ public function getNodeTypes(): array
/**
* @param Expression $node
+ * @return \PhpParser\Node|mixed[]|int|null
*/
- public function refactor(Node $node): Node|array|int|null
+ public function refactor(Node $node)
{
$newNode = $this->getNewNode($node);
diff --git a/src/Rector/PropertyFetch/OptionalToNullsafeOperatorRector.php b/src/Rector/PropertyFetch/OptionalToNullsafeOperatorRector.php
index 520e8ea6..47b352f3 100644
--- a/src/Rector/PropertyFetch/OptionalToNullsafeOperatorRector.php
+++ b/src/Rector/PropertyFetch/OptionalToNullsafeOperatorRector.php
@@ -34,10 +34,15 @@
*/
final class OptionalToNullsafeOperatorRector extends AbstractRector implements ConfigurableRectorInterface, MinPhpVersionInterface
{
+ /**
+ * @readonly
+ * @var \Rector\PhpParser\Node\Value\ValueResolver
+ */
+ private $valueResolver;
/**
* @var string
*/
- final public const EXCLUDE_METHODS = 'exclude_methods';
+ public const EXCLUDE_METHODS = 'exclude_methods';
/**
* @var array>
@@ -47,11 +52,11 @@ final class OptionalToNullsafeOperatorRector extends AbstractRector implements C
/**
* @var string[]
*/
- private array $excludeMethods = [];
+ private $excludeMethods = [];
- public function __construct(
- private readonly ValueResolver $valueResolver,
- ) {
+ public function __construct(ValueResolver $valueResolver)
+ {
+ $this->valueResolver = $valueResolver;
}
public function getRuleDefinition(): RuleDefinition
diff --git a/src/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector.php b/src/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector.php
index 2d087462..bc1cba3a 100644
--- a/src/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector.php
+++ b/src/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector.php
@@ -19,9 +19,14 @@
*/
final class ReplaceFakerInstanceWithHelperRector extends AbstractRector
{
- public function __construct(
- private readonly ReflectionResolver $reflectionResolver
- ) {
+ /**
+ * @readonly
+ * @var \Rector\Reflection\ReflectionResolver
+ */
+ private $reflectionResolver;
+ public function __construct(ReflectionResolver $reflectionResolver)
+ {
+ $this->reflectionResolver = $reflectionResolver;
}
public function getRuleDefinition(): RuleDefinition
@@ -104,7 +109,11 @@ public function refactor(Node $node): ?Node
return null;
}
- private function refactorPropertyFetch(MethodCall|PropertyFetch $node): MethodCall|PropertyFetch|null
+ /**
+ * @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\PropertyFetch $node
+ * @return \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\PropertyFetch|null
+ */
+ private function refactorPropertyFetch($node)
{
if (! $node->var instanceof PropertyFetch) {
return null;
diff --git a/src/Rector/StaticCall/CarbonSetTestNowToTravelToRector.php b/src/Rector/StaticCall/CarbonSetTestNowToTravelToRector.php
index 02fd6a46..cc39ab71 100644
--- a/src/Rector/StaticCall/CarbonSetTestNowToTravelToRector.php
+++ b/src/Rector/StaticCall/CarbonSetTestNowToTravelToRector.php
@@ -24,11 +24,9 @@ final class CarbonSetTestNowToTravelToRector extends AbstractScopeAwareRector
*/
public function getRuleDefinition(): RuleDefinition
{
- return new RuleDefinition(
- 'Use the `$this->travelTo()` method in Laravel\'s `TestCase` class instead of the `Carbon::setTestNow()` method.',
- [
- new CodeSample(
- <<<'CODE_SAMPLE'
+ return new RuleDefinition('Use the `$this->travelTo()` method in Laravel\'s `TestCase` class instead of the `Carbon::setTestNow()` method.', [
+ new CodeSample(
+ <<<'CODE_SAMPLE'
use Illuminate\Support\Carbon;
use Illuminate\Foundation\Testing\TestCase;
@@ -40,8 +38,8 @@ public function test()
}
}
CODE_SAMPLE
- ,
- <<<'CODE_SAMPLE'
+ ,
+ <<<'CODE_SAMPLE'
use Illuminate\Support\Carbon;
use Illuminate\Foundation\Testing\TestCase;
@@ -53,9 +51,8 @@ public function test()
}
}
CODE_SAMPLE
- ),
- ],
- );
+ ),
+ ]);
}
/**
@@ -92,11 +89,7 @@ public function refactorWithScope(Node $node, Scope $scope): ?MethodCall
? [new Arg($this->nodeFactory->createNull())]
: $node->args;
- return $this->nodeFactory->createMethodCall(
- new Variable('this'),
- 'travelTo',
- $args,
- );
+ return $this->nodeFactory->createMethodCall(new Variable('this'), 'travelTo', $args);
}
private function isCarbon(Node $node): bool
diff --git a/src/Rector/StaticCall/DispatchToHelperFunctionsRector.php b/src/Rector/StaticCall/DispatchToHelperFunctionsRector.php
index 06580362..4857e3de 100644
--- a/src/Rector/StaticCall/DispatchToHelperFunctionsRector.php
+++ b/src/Rector/StaticCall/DispatchToHelperFunctionsRector.php
@@ -23,29 +23,30 @@
*/
final class DispatchToHelperFunctionsRector extends AbstractRector
{
- public function __construct(
- private readonly ReflectionProvider $reflectionProvider,
- ) {
+ /**
+ * @readonly
+ * @var \PHPStan\Reflection\ReflectionProvider
+ */
+ private $reflectionProvider;
+ public function __construct(ReflectionProvider $reflectionProvider)
+ {
+ $this->reflectionProvider = $reflectionProvider;
}
-
/**
* @throws PoorDocumentationException
*/
public function getRuleDefinition(): RuleDefinition
{
- return new RuleDefinition(
- 'Use the event or dispatch helpers instead of the static dispatch method.',
- [
- new CodeSample(
- 'ExampleEvent::dispatch($email);',
- 'event(new ExampleEvent($email));'
- ),
- new CodeSample(
- 'ExampleJob::dispatch($email);',
- 'dispatch(new ExampleJob($email));'
- ),
- ],
- );
+ return new RuleDefinition('Use the event or dispatch helpers instead of the static dispatch method.', [
+ new CodeSample(
+ 'ExampleEvent::dispatch($email);',
+ 'event(new ExampleEvent($email));'
+ ),
+ new CodeSample(
+ 'ExampleJob::dispatch($email);',
+ 'dispatch(new ExampleJob($email));'
+ ),
+ ]);
}
/**
@@ -99,7 +100,7 @@ private function getClassReflection(StaticCall $staticCall): ?ClassReflection
return $this->reflectionProvider->getClass(
$type->getClassName()
);
- } catch (ClassNotFoundException) {
+ } catch (ClassNotFoundException $exception) {
}
return null;
@@ -126,11 +127,8 @@ private function createDispatchableCall(StaticCall $staticCall, string $method):
return null;
}
- return new FuncCall(
- new Name($method),
- [
- new Arg(new New_(new FullyQualified($class), $staticCall->args)),
- ],
- );
+ return new FuncCall(new Name($method), [
+ new Arg(new New_(new FullyQualified($class), $staticCall->args)),
+ ]);
}
}
diff --git a/src/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector.php b/src/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector.php
index 7143445c..8c366863 100644
--- a/src/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector.php
+++ b/src/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector.php
@@ -26,12 +26,12 @@ final class EloquentMagicMethodToQueryBuilderRector extends AbstractRector imple
/**
* @var string
*/
- final public const EXCLUDE_METHODS = 'exclude_methods';
+ public const EXCLUDE_METHODS = 'exclude_methods';
/**
* @var string[]
*/
- private array $excludeMethods = [];
+ private $excludeMethods = [];
public function getRuleDefinition(): RuleDefinition
{
@@ -139,7 +139,7 @@ public function isMagicMethod(string $className, string $methodName): bool
try {
$reflectionMethod = new ReflectionMethod($className, $methodName);
- } catch (ReflectionException) {
+ } catch (ReflectionException $exception) {
return true; // method does not exist => is magic method
}
@@ -160,7 +160,7 @@ public function isPublicMethod(string $className, string $methodName): bool
if ($reflectionMethod->isStatic()) {
return false;
}
- } catch (ReflectionException) {
+ } catch (ReflectionException $exception) {
return false; // method does not exist => is magic method
}
diff --git a/src/Rector/StaticCall/MinutesToSecondsInCacheRector.php b/src/Rector/StaticCall/MinutesToSecondsInCacheRector.php
index 0d59e033..715f89ab 100644
--- a/src/Rector/StaticCall/MinutesToSecondsInCacheRector.php
+++ b/src/Rector/StaticCall/MinutesToSecondsInCacheRector.php
@@ -42,7 +42,7 @@ final class MinutesToSecondsInCacheRector extends AbstractRector
/**
* @var TypeToTimeMethodAndPosition[]
*/
- private array $typeToTimeMethodsAndPositions = [];
+ private $typeToTimeMethodsAndPositions = [];
public function __construct()
{
@@ -134,11 +134,15 @@ public function refactor(Node $node): ?Node
return $node;
}
+ /**
+ * @param \PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall $node
+ * @return \PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall|null
+ */
private function processArgumentOnPosition(
- StaticCall|MethodCall $node,
+ $node,
Expr $argExpr,
int $argumentPosition
- ): StaticCall|MethodCall|null {
+ ) {
if (! $this->nodeTypeResolver->isNumberType($argExpr)) {
return null;
}
diff --git a/src/Rector/StaticCall/Redirect301ToPermanentRedirectRector.php b/src/Rector/StaticCall/Redirect301ToPermanentRedirectRector.php
index c7484629..e1fc28e4 100644
--- a/src/Rector/StaticCall/Redirect301ToPermanentRedirectRector.php
+++ b/src/Rector/StaticCall/Redirect301ToPermanentRedirectRector.php
@@ -21,14 +21,19 @@
*/
final class Redirect301ToPermanentRedirectRector extends AbstractRector
{
+ /**
+ * @readonly
+ * @var \Rector\PhpParser\Node\Value\ValueResolver
+ */
+ private $valueResolver;
/**
* @var ObjectType[]
*/
- private array $routerObjectTypes = [];
+ private $routerObjectTypes = [];
- public function __construct(
- private readonly ValueResolver $valueResolver,
- ) {
+ public function __construct(ValueResolver $valueResolver)
+ {
+ $this->valueResolver = $valueResolver;
$this->routerObjectTypes = [
new ObjectType('Illuminate\Support\Facades\Route'),
new ObjectType('Illuminate\Routing\Route'),
diff --git a/src/Rector/StaticCall/ReplaceAssertTimesSendWithAssertSentTimesRector.php b/src/Rector/StaticCall/ReplaceAssertTimesSendWithAssertSentTimesRector.php
index 71132e25..8d7aab91 100644
--- a/src/Rector/StaticCall/ReplaceAssertTimesSendWithAssertSentTimesRector.php
+++ b/src/Rector/StaticCall/ReplaceAssertTimesSendWithAssertSentTimesRector.php
@@ -18,14 +18,13 @@ class ReplaceAssertTimesSendWithAssertSentTimesRector extends AbstractRector
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition('Replace assertTimesSent with assertSentTimes', [
- new CodeSample(
- <<<'CODE_SAMPLE'
+ new CodeSample(<<<'CODE_SAMPLE'
Notification::assertTimesSent(1, SomeNotification::class);
-CODE_SAMPLE,
- <<<'CODE_SAMPLE'
+CODE_SAMPLE
+, <<<'CODE_SAMPLE'
Notification::assertSentTimes(SomeNotification::class, 1);
-CODE_SAMPLE,
- ),
+CODE_SAMPLE
+),
]);
}
diff --git a/src/Rector/StaticCall/RequestStaticValidateToInjectRector.php b/src/Rector/StaticCall/RequestStaticValidateToInjectRector.php
index 97276d72..e39c9309 100644
--- a/src/Rector/StaticCall/RequestStaticValidateToInjectRector.php
+++ b/src/Rector/StaticCall/RequestStaticValidateToInjectRector.php
@@ -28,14 +28,20 @@
*/
final class RequestStaticValidateToInjectRector extends AbstractScopeAwareRector
{
+ /**
+ * @readonly
+ * @var \Rector\Reflection\ReflectionResolver
+ */
+ private $reflectionResolver;
/**
* @var ObjectType[]
*/
- private array $requestObjectTypes = [];
+ private $requestObjectTypes = [];
public function __construct(
- private readonly ReflectionResolver $reflectionResolver
+ ReflectionResolver $reflectionResolver
) {
+ $this->reflectionResolver = $reflectionResolver;
$this->requestObjectTypes = [new ObjectType('Illuminate\Http\Request'), new ObjectType('Request')];
}
@@ -115,7 +121,10 @@ public function refactorWithScope(Node $node, Scope $scope): ?Node
return null;
}
- private function shouldSkip(ClassMethod $classMethod, StaticCall|FuncCall $node, Scope $scope): bool
+ /**
+ * @param \PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\FuncCall $node
+ */
+ private function shouldSkip(ClassMethod $classMethod, $node, Scope $scope): bool
{
$classReflection = $scope->getClassReflection();
@@ -131,7 +140,7 @@ private function shouldSkip(ClassMethod $classMethod, StaticCall|FuncCall $node,
$classMethod,
$scope
);
- $classMethodNamespaceName = $classMethodReflection?->getPrototype()?->getDeclaringClass()?->getName();
+ $classMethodNamespaceName = ($nullsafeVariable1 = ($nullsafeVariable2 = ($nullsafeVariable3 = $classMethodReflection) ? $nullsafeVariable3->getPrototype() : null) ? $nullsafeVariable2->getDeclaringClass() : null) ? $nullsafeVariable1->getName() : null;
if ($classMethodNamespaceName !== $classReflection->getName()) {
return true;
}
diff --git a/src/Rector/StaticCall/RouteActionCallableRector.php b/src/Rector/StaticCall/RouteActionCallableRector.php
index a433157f..2cb63a22 100644
--- a/src/Rector/StaticCall/RouteActionCallableRector.php
+++ b/src/Rector/StaticCall/RouteActionCallableRector.php
@@ -32,33 +32,51 @@
*/
final class RouteActionCallableRector extends AbstractRector implements ConfigurableRectorInterface
{
+ /**
+ * @readonly
+ * @var \Rector\Reflection\ReflectionResolver
+ */
+ private $reflectionResolver;
+ /**
+ * @readonly
+ * @var \RectorLaravel\NodeFactory\RouterRegisterNodeAnalyzer
+ */
+ private $routerRegisterNodeAnalyzer;
+ /**
+ * @readonly
+ * @var \Rector\PhpParser\Node\Value\ValueResolver
+ */
+ private $valueResolver;
/**
* @var string
*/
- final public const ROUTES = 'routes';
+ public const ROUTES = 'routes';
/**
* @var string
*/
- final public const NAMESPACE = 'namespace';
+ public const NAMESPACE = 'namespace';
/**
* @var string
*/
private const DEFAULT_NAMESPACE = 'App\Http\Controllers';
- private string $namespace = self::DEFAULT_NAMESPACE;
+ /**
+ * @var string
+ */
+ private $namespace = self::DEFAULT_NAMESPACE;
/**
* @var array
*/
- private array $routes = [];
+ private $routes = [];
- public function __construct(
- private readonly ReflectionResolver $reflectionResolver,
- private readonly RouterRegisterNodeAnalyzer $routerRegisterNodeAnalyzer,
- private readonly ValueResolver $valueResolver,
- ) {
+ public function __construct(ReflectionResolver $reflectionResolver, RouterRegisterNodeAnalyzer $routerRegisterNodeAnalyzer, ValueResolver $valueResolver)
+ {
+ $this->reflectionResolver = $reflectionResolver;
+ $this->routerRegisterNodeAnalyzer = $routerRegisterNodeAnalyzer;
+ $this->valueResolver = $valueResolver;
}
public function getRuleDefinition(): RuleDefinition
@@ -145,7 +163,9 @@ public function refactor(Node $node): ?Node
$argument = new String_($argValue['middleware']);
} else {
$argument = new Array_(array_map(
- static fn ($value) => new ArrayItem(new String_($value)),
+ static function ($value) {
+ return new ArrayItem(new String_($value));
+ },
$argValue['middleware']
));
}
@@ -173,8 +193,9 @@ public function configure(array $configuration): void
/**
* @return array{string, string}|null
+ * @param mixed $action
*/
- private function resolveControllerFromAction(mixed $action): ?array
+ private function resolveControllerFromAction($action): ?array
{
if (! $this->isActionString($action)) {
return null;
@@ -191,14 +212,17 @@ private function resolveControllerFromAction(mixed $action): ?array
[$controller, $method] = $segments;
$namespace = $this->getNamespace($this->file->getFilePath());
- if (! str_starts_with($controller, '\\')) {
+ if (strncmp($controller, '\\', strlen('\\')) !== 0) {
$controller = $namespace . '\\' . $controller;
}
return [$controller, $method];
}
- private function getActionPosition(Identifier|Expr $name): int
+ /**
+ * @param \PhpParser\Node\Identifier|\PhpParser\Node\Expr $name
+ */
+ private function getActionPosition($name): int
{
if ($this->routerRegisterNodeAnalyzer->isRegisterFallback($name)) {
return 0;
@@ -211,7 +235,10 @@ private function getActionPosition(Identifier|Expr $name): int
return 1;
}
- private function isActionString(mixed $action): bool
+ /**
+ * @param mixed $action
+ */
+ private function isActionString($action): bool
{
if (! is_string($action)) {
if (! is_array($action)) {
@@ -224,7 +251,7 @@ private function isActionString(mixed $action): bool
return in_array('uses', $keys, true) && array_diff($keys, ['as', 'middleware', 'uses']) === [];
}
- return str_contains($action, '@');
+ return strpos($action, '@') !== false;
}
private function getNamespace(string $filePath): string
diff --git a/src/Set/LaravelLevelSetList.php b/src/Set/LaravelLevelSetList.php
index 852d3cd5..b44a71cd 100644
--- a/src/Set/LaravelLevelSetList.php
+++ b/src/Set/LaravelLevelSetList.php
@@ -11,70 +11,70 @@ final class LaravelLevelSetList implements SetListInterface
/**
* @var string
*/
- final public const UP_TO_LARAVEL_51 = __DIR__ . '/../../config/sets/level/up-to-laravel-51.php';
+ public const UP_TO_LARAVEL_51 = __DIR__ . '/../../config/sets/level/up-to-laravel-51.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_52 = __DIR__ . '/../../config/sets/level/up-to-laravel-52.php';
+ public const UP_TO_LARAVEL_52 = __DIR__ . '/../../config/sets/level/up-to-laravel-52.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_53 = __DIR__ . '/../../config/sets/level/up-to-laravel-53.php';
+ public const UP_TO_LARAVEL_53 = __DIR__ . '/../../config/sets/level/up-to-laravel-53.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_54 = __DIR__ . '/../../config/sets/level/up-to-laravel-54.php';
+ public const UP_TO_LARAVEL_54 = __DIR__ . '/../../config/sets/level/up-to-laravel-54.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_55 = __DIR__ . '/../../config/sets/level/up-to-laravel-55.php';
+ public const UP_TO_LARAVEL_55 = __DIR__ . '/../../config/sets/level/up-to-laravel-55.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_56 = __DIR__ . '/../../config/sets/level/up-to-laravel-56.php';
+ public const UP_TO_LARAVEL_56 = __DIR__ . '/../../config/sets/level/up-to-laravel-56.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_57 = __DIR__ . '/../../config/sets/level/up-to-laravel-57.php';
+ public const UP_TO_LARAVEL_57 = __DIR__ . '/../../config/sets/level/up-to-laravel-57.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_58 = __DIR__ . '/../../config/sets/level/up-to-laravel-58.php';
+ public const UP_TO_LARAVEL_58 = __DIR__ . '/../../config/sets/level/up-to-laravel-58.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_60 = __DIR__ . '/../../config/sets/level/up-to-laravel-60.php';
+ public const UP_TO_LARAVEL_60 = __DIR__ . '/../../config/sets/level/up-to-laravel-60.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_70 = __DIR__ . '/../../config/sets/level/up-to-laravel-70.php';
+ public const UP_TO_LARAVEL_70 = __DIR__ . '/../../config/sets/level/up-to-laravel-70.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_80 = __DIR__ . '/../../config/sets/level/up-to-laravel-80.php';
+ public const UP_TO_LARAVEL_80 = __DIR__ . '/../../config/sets/level/up-to-laravel-80.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_90 = __DIR__ . '/../../config/sets/level/up-to-laravel-90.php';
+ public const UP_TO_LARAVEL_90 = __DIR__ . '/../../config/sets/level/up-to-laravel-90.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_100 = __DIR__ . '/../../config/sets/level/up-to-laravel-100.php';
+ public const UP_TO_LARAVEL_100 = __DIR__ . '/../../config/sets/level/up-to-laravel-100.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_110 = __DIR__ . '/../../config/sets/level/up-to-laravel-110.php';
+ public const UP_TO_LARAVEL_110 = __DIR__ . '/../../config/sets/level/up-to-laravel-110.php';
}
diff --git a/src/Set/LaravelSetList.php b/src/Set/LaravelSetList.php
index ad49796a..378acd79 100644
--- a/src/Set/LaravelSetList.php
+++ b/src/Set/LaravelSetList.php
@@ -11,130 +11,130 @@ final class LaravelSetList implements SetListInterface
/**
* @var string
*/
- final public const ARRAY_STR_FUNCTIONS_TO_STATIC_CALL = __DIR__ . '/../../config/sets/laravel-array-str-functions-to-static-call.php';
+ public const ARRAY_STR_FUNCTIONS_TO_STATIC_CALL = __DIR__ . '/../../config/sets/laravel-array-str-functions-to-static-call.php';
/**
* @var string
*/
- final public const LARAVEL_50 = __DIR__ . '/../../config/sets/laravel50.php';
+ public const LARAVEL_50 = __DIR__ . '/../../config/sets/laravel50.php';
/**
* @var string
*/
- final public const LARAVEL_51 = __DIR__ . '/../../config/sets/laravel51.php';
+ public const LARAVEL_51 = __DIR__ . '/../../config/sets/laravel51.php';
/**
* @var string
*/
- final public const LARAVEL_52 = __DIR__ . '/../../config/sets/laravel52.php';
+ public const LARAVEL_52 = __DIR__ . '/../../config/sets/laravel52.php';
/**
* @var string
*/
- final public const LARAVEL_53 = __DIR__ . '/../../config/sets/laravel53.php';
+ public const LARAVEL_53 = __DIR__ . '/../../config/sets/laravel53.php';
/**
* @var string
*/
- final public const LARAVEL_54 = __DIR__ . '/../../config/sets/laravel54.php';
+ public const LARAVEL_54 = __DIR__ . '/../../config/sets/laravel54.php';
/**
* @var string
*/
- final public const LARAVEL_55 = __DIR__ . '/../../config/sets/laravel55.php';
+ public const LARAVEL_55 = __DIR__ . '/../../config/sets/laravel55.php';
/**
* @var string
*/
- final public const LARAVEL_56 = __DIR__ . '/../../config/sets/laravel56.php';
+ public const LARAVEL_56 = __DIR__ . '/../../config/sets/laravel56.php';
/**
* @var string
*/
- final public const LARAVEL_57 = __DIR__ . '/../../config/sets/laravel57.php';
+ public const LARAVEL_57 = __DIR__ . '/../../config/sets/laravel57.php';
/**
* @var string
*/
- final public const LARAVEL_58 = __DIR__ . '/../../config/sets/laravel58.php';
+ public const LARAVEL_58 = __DIR__ . '/../../config/sets/laravel58.php';
/**
* @var string
*/
- final public const LARAVEL_60 = __DIR__ . '/../../config/sets/laravel60.php';
+ public const LARAVEL_60 = __DIR__ . '/../../config/sets/laravel60.php';
/**
* @var string
*/
- final public const LARAVEL_70 = __DIR__ . '/../../config/sets/laravel70.php';
+ public const LARAVEL_70 = __DIR__ . '/../../config/sets/laravel70.php';
/**
* @var string
*/
- final public const LARAVEL_80 = __DIR__ . '/../../config/sets/laravel80.php';
+ public const LARAVEL_80 = __DIR__ . '/../../config/sets/laravel80.php';
/**
* @var string
*/
- final public const LARAVEL_90 = __DIR__ . '/../../config/sets/laravel90.php';
+ public const LARAVEL_90 = __DIR__ . '/../../config/sets/laravel90.php';
/**
* @var string
*/
- final public const LARAVEL_100 = __DIR__ . '/../../config/sets/laravel100.php';
+ public const LARAVEL_100 = __DIR__ . '/../../config/sets/laravel100.php';
/**
* @var string
*/
- final public const LARAVEL_110 = __DIR__ . '/../../config/sets/laravel110.php';
+ public const LARAVEL_110 = __DIR__ . '/../../config/sets/laravel110.php';
/**
* @var string
*/
- final public const LARAVEL_ARRAYACCESS_TO_METHOD_CALL = __DIR__ . '/../../config/sets/laravel-arrayaccess-to-method-call.php';
+ public const LARAVEL_ARRAYACCESS_TO_METHOD_CALL = __DIR__ . '/../../config/sets/laravel-arrayaccess-to-method-call.php';
/**
* @var string
*/
- final public const LARAVEL_ARRAY_STR_FUNCTION_TO_STATIC_CALL = __DIR__ . '/../../config/sets/laravel-array-str-functions-to-static-call.php';
+ public const LARAVEL_ARRAY_STR_FUNCTION_TO_STATIC_CALL = __DIR__ . '/../../config/sets/laravel-array-str-functions-to-static-call.php';
/**
* @var string
*/
- final public const LARAVEL_CODE_QUALITY = __DIR__ . '/../../config/sets/laravel-code-quality.php';
+ public const LARAVEL_CODE_QUALITY = __DIR__ . '/../../config/sets/laravel-code-quality.php';
/**
* @var string
*/
- final public const LARAVEL_COLLECTION = __DIR__ . '/../../config/sets/laravel-collection.php';
+ public const LARAVEL_COLLECTION = __DIR__ . '/../../config/sets/laravel-collection.php';
/**
* @var string
*/
- final public const LARAVEL_CONTAINER_STRING_TO_FULLY_QUALIFIED_NAME = __DIR__ . '/../../config/sets/laravel-container-string-to-fully-qualified-name.php';
+ public const LARAVEL_CONTAINER_STRING_TO_FULLY_QUALIFIED_NAME = __DIR__ . '/../../config/sets/laravel-container-string-to-fully-qualified-name.php';
/**
* @var string
*/
- final public const LARAVEL_ELOQUENT_MAGIC_METHOD_TO_QUERY_BUILDER = __DIR__ . '/../../config/sets/laravel-eloquent-magic-method-to-query-builder.php';
+ public const LARAVEL_ELOQUENT_MAGIC_METHOD_TO_QUERY_BUILDER = __DIR__ . '/../../config/sets/laravel-eloquent-magic-method-to-query-builder.php';
/**
* @var string
*/
- final public const LARAVEL_FACADE_ALIASES_TO_FULL_NAMES = __DIR__ . '/../../config/sets/laravel-facade-aliases-to-full-names.php';
+ public const LARAVEL_FACADE_ALIASES_TO_FULL_NAMES = __DIR__ . '/../../config/sets/laravel-facade-aliases-to-full-names.php';
/**
* @var string
*/
- final public const LARAVEL_IF_HELPERS = __DIR__ . '/../../config/sets/laravel-if-helpers.php';
+ public const LARAVEL_IF_HELPERS = __DIR__ . '/../../config/sets/laravel-if-helpers.php';
/**
* @var string
*/
- final public const LARAVEL_LEGACY_FACTORIES_TO_CLASSES = __DIR__ . '/../../config/sets/laravel-legacy-factories-to-classes.php';
+ public const LARAVEL_LEGACY_FACTORIES_TO_CLASSES = __DIR__ . '/../../config/sets/laravel-legacy-factories-to-classes.php';
/**
* @var string
*/
- final public const LARAVEL_STATIC_TO_INJECTION = __DIR__ . '/../../config/sets/laravel-static-to-injection.php';
+ public const LARAVEL_STATIC_TO_INJECTION = __DIR__ . '/../../config/sets/laravel-static-to-injection.php';
}
diff --git a/src/Set/Packages/Cashier/CashierLevelSetList.php b/src/Set/Packages/Cashier/CashierLevelSetList.php
index b2fa4ee1..1bd7dcde 100644
--- a/src/Set/Packages/Cashier/CashierLevelSetList.php
+++ b/src/Set/Packages/Cashier/CashierLevelSetList.php
@@ -11,10 +11,10 @@ final class CashierLevelSetList implements SetListInterface
/**
* @var string
*/
- final public const UP_TO_LARAVEL_CASHIER_130 = __DIR__ . '/../../../../config/sets/packages/cashier/level/up-to-cashier-13.php';
+ public const UP_TO_LARAVEL_CASHIER_130 = __DIR__ . '/../../../../config/sets/packages/cashier/level/up-to-cashier-13.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_CASHIER_140 = __DIR__ . '/../../../../config/sets/packages/cashier/level/up-to-cashier-14.php';
+ public const UP_TO_LARAVEL_CASHIER_140 = __DIR__ . '/../../../../config/sets/packages/cashier/level/up-to-cashier-14.php';
}
diff --git a/src/Set/Packages/Cashier/CashierSetList.php b/src/Set/Packages/Cashier/CashierSetList.php
index ca727341..9698d07e 100644
--- a/src/Set/Packages/Cashier/CashierSetList.php
+++ b/src/Set/Packages/Cashier/CashierSetList.php
@@ -11,10 +11,10 @@ final class CashierSetList implements SetListInterface
/**
* @var string
*/
- final public const LARAVEL_CASHIER_130 = __DIR__ . '/../../../../config/sets/packages/cashier/cashier-13.php';
+ public const LARAVEL_CASHIER_130 = __DIR__ . '/../../../../config/sets/packages/cashier/cashier-13.php';
/**
* @var string
*/
- final public const LARAVEL_CASHIER_140 = __DIR__ . '/../../../../config/sets/packages/cashier/cashier-14.php';
+ public const LARAVEL_CASHIER_140 = __DIR__ . '/../../../../config/sets/packages/cashier/cashier-14.php';
}
diff --git a/src/Set/Packages/Livewire/LivewireLevelSetList.php b/src/Set/Packages/Livewire/LivewireLevelSetList.php
index 36c3852a..ce670d9c 100644
--- a/src/Set/Packages/Livewire/LivewireLevelSetList.php
+++ b/src/Set/Packages/Livewire/LivewireLevelSetList.php
@@ -11,5 +11,5 @@ final class LivewireLevelSetList implements SetListInterface
/**
* @var string
*/
- final public const UP_TO_LIVEWIRE = __DIR__ . '/../../../../config/sets/packages/livewire/level/up-to-livewire-30.php';
+ public const UP_TO_LIVEWIRE = __DIR__ . '/../../../../config/sets/packages/livewire/level/up-to-livewire-30.php';
}
diff --git a/src/Set/Packages/Livewire/LivewireSetList.php b/src/Set/Packages/Livewire/LivewireSetList.php
index 60f4e4e9..4663eb4d 100644
--- a/src/Set/Packages/Livewire/LivewireSetList.php
+++ b/src/Set/Packages/Livewire/LivewireSetList.php
@@ -7,5 +7,5 @@ final class LivewireSetList
/**
* @var string
*/
- final public const LIVEWIRE_30 = __DIR__ . '/../../../../config/sets/packages/livewire/livewire-30.php';
+ public const LIVEWIRE_30 = __DIR__ . '/../../../../config/sets/packages/livewire/livewire-30.php';
}
diff --git a/src/ValueObject/AddArgumentDefaultValue.php b/src/ValueObject/AddArgumentDefaultValue.php
index 6ab9a18f..bfc8b32f 100644
--- a/src/ValueObject/AddArgumentDefaultValue.php
+++ b/src/ValueObject/AddArgumentDefaultValue.php
@@ -6,14 +6,37 @@
use PHPStan\Type\ObjectType;
-final readonly class AddArgumentDefaultValue
+final class AddArgumentDefaultValue
{
- public function __construct(
- private string $class,
- private string $method,
- private int $position,
- private mixed $defaultValue
- ) {
+ /**
+ * @readonly
+ * @var string
+ */
+ private $class;
+ /**
+ * @readonly
+ * @var string
+ */
+ private $method;
+ /**
+ * @readonly
+ * @var int
+ */
+ private $position;
+ /**
+ * @readonly
+ * @var mixed
+ */
+ private $defaultValue;
+ /**
+ * @param mixed $defaultValue
+ */
+ public function __construct(string $class, string $method, int $position, $defaultValue)
+ {
+ $this->class = $class;
+ $this->method = $method;
+ $this->position = $position;
+ $this->defaultValue = $defaultValue;
}
public function getObjectType(): ObjectType
@@ -31,7 +54,10 @@ public function getPosition(): int
return $this->position;
}
- public function getDefaultValue(): mixed
+ /**
+ * @return mixed
+ */
+ public function getDefaultValue()
{
return $this->defaultValue;
}
diff --git a/src/ValueObject/ArgumentFuncCallToMethodCall.php b/src/ValueObject/ArgumentFuncCallToMethodCall.php
index 8049acf2..ab21a9b2 100644
--- a/src/ValueObject/ArgumentFuncCallToMethodCall.php
+++ b/src/ValueObject/ArgumentFuncCallToMethodCall.php
@@ -7,14 +7,38 @@
use Rector\Validation\RectorAssert;
use RectorLaravel\Contract\ValueObject\ArgumentFuncCallToMethodCallInterface;
-final readonly class ArgumentFuncCallToMethodCall implements ArgumentFuncCallToMethodCallInterface
+final class ArgumentFuncCallToMethodCall implements ArgumentFuncCallToMethodCallInterface
{
+ /**
+ * @readonly
+ * @var string
+ */
+ private $function;
+ /**
+ * @readonly
+ * @var string
+ */
+ private $class;
+ /**
+ * @readonly
+ * @var string|null
+ */
+ private $methodIfArgs;
+ /**
+ * @readonly
+ * @var string|null
+ */
+ private $methodIfNoArgs;
public function __construct(
- private string $function,
- private string $class,
- private ?string $methodIfArgs = null,
- private ?string $methodIfNoArgs = null
+ string $function,
+ string $class,
+ ?string $methodIfArgs = null,
+ ?string $methodIfNoArgs = null
) {
+ $this->function = $function;
+ $this->class = $class;
+ $this->methodIfArgs = $methodIfArgs;
+ $this->methodIfNoArgs = $methodIfNoArgs;
RectorAssert::className($class);
RectorAssert::functionName($function);
}
diff --git a/src/ValueObject/ArrayFuncCallToMethodCall.php b/src/ValueObject/ArrayFuncCallToMethodCall.php
index 6abdb8c0..f366ecfa 100644
--- a/src/ValueObject/ArrayFuncCallToMethodCall.php
+++ b/src/ValueObject/ArrayFuncCallToMethodCall.php
@@ -7,8 +7,28 @@
use Rector\Validation\RectorAssert;
use RectorLaravel\Contract\ValueObject\ArgumentFuncCallToMethodCallInterface;
-final readonly class ArrayFuncCallToMethodCall implements ArgumentFuncCallToMethodCallInterface
+final class ArrayFuncCallToMethodCall implements ArgumentFuncCallToMethodCallInterface
{
+ /**
+ * @var non-empty-string
+ * @readonly
+ */
+ private $function;
+ /**
+ * @var non-empty-string
+ * @readonly
+ */
+ private $class;
+ /**
+ * @var non-empty-string
+ * @readonly
+ */
+ private $arrayMethod;
+ /**
+ * @var non-empty-string
+ * @readonly
+ */
+ private $nonArrayMethod;
/**
* @param non-empty-string $function
* @param non-empty-string $class
@@ -16,11 +36,15 @@
* @param non-empty-string $nonArrayMethod
*/
public function __construct(
- private string $function,
- private string $class,
- private string $arrayMethod,
- private string $nonArrayMethod
+ string $function,
+ string $class,
+ string $arrayMethod,
+ string $nonArrayMethod
) {
+ $this->function = $function;
+ $this->class = $class;
+ $this->arrayMethod = $arrayMethod;
+ $this->nonArrayMethod = $nonArrayMethod;
RectorAssert::className($class);
RectorAssert::functionName($function);
RectorAssert::methodName($arrayMethod);
diff --git a/src/ValueObject/ReplaceServiceContainerCallArg.php b/src/ValueObject/ReplaceServiceContainerCallArg.php
index 106e3ba5..a9315910 100644
--- a/src/ValueObject/ReplaceServiceContainerCallArg.php
+++ b/src/ValueObject/ReplaceServiceContainerCallArg.php
@@ -4,20 +4,40 @@
use PhpParser\Node\Expr\ClassConstFetch;
-final readonly class ReplaceServiceContainerCallArg
+final class ReplaceServiceContainerCallArg
{
- public function __construct(
- private string|ClassConstFetch $oldService,
- private string|ClassConstFetch $newService
- ) {
+ /**
+ * @readonly
+ * @var string|\PhpParser\Node\Expr\ClassConstFetch
+ */
+ private $oldService;
+ /**
+ * @readonly
+ * @var string|\PhpParser\Node\Expr\ClassConstFetch
+ */
+ private $newService;
+ /**
+ * @param string|\PhpParser\Node\Expr\ClassConstFetch $oldService
+ * @param string|\PhpParser\Node\Expr\ClassConstFetch $newService
+ */
+ public function __construct($oldService, $newService)
+ {
+ $this->oldService = $oldService;
+ $this->newService = $newService;
}
- public function getOldService(): string|ClassConstFetch
+ /**
+ * @return string|\PhpParser\Node\Expr\ClassConstFetch
+ */
+ public function getOldService()
{
return $this->oldService;
}
- public function getNewService(): string|ClassConstFetch
+ /**
+ * @return string|\PhpParser\Node\Expr\ClassConstFetch
+ */
+ public function getNewService()
{
return $this->newService;
}
diff --git a/src/ValueObject/ServiceNameTypeAndVariableName.php b/src/ValueObject/ServiceNameTypeAndVariableName.php
index 3c2a7b8c..fd2e113d 100644
--- a/src/ValueObject/ServiceNameTypeAndVariableName.php
+++ b/src/ValueObject/ServiceNameTypeAndVariableName.php
@@ -4,13 +4,28 @@
namespace RectorLaravel\ValueObject;
-final readonly class ServiceNameTypeAndVariableName
+final class ServiceNameTypeAndVariableName
{
- public function __construct(
- private string $serviceName,
- private string $type,
- private string $variableName
- ) {
+ /**
+ * @readonly
+ * @var string
+ */
+ private $serviceName;
+ /**
+ * @readonly
+ * @var string
+ */
+ private $type;
+ /**
+ * @readonly
+ * @var string
+ */
+ private $variableName;
+ public function __construct(string $serviceName, string $type, string $variableName)
+ {
+ $this->serviceName = $serviceName;
+ $this->type = $type;
+ $this->variableName = $variableName;
}
public function getServiceName(): string
diff --git a/src/ValueObject/TypeToTimeMethodAndPosition.php b/src/ValueObject/TypeToTimeMethodAndPosition.php
index 74684bd7..491d89c6 100644
--- a/src/ValueObject/TypeToTimeMethodAndPosition.php
+++ b/src/ValueObject/TypeToTimeMethodAndPosition.php
@@ -6,13 +6,28 @@
use PHPStan\Type\ObjectType;
-final readonly class TypeToTimeMethodAndPosition
+final class TypeToTimeMethodAndPosition
{
- public function __construct(
- private string $type,
- private string $methodName,
- private int $position
- ) {
+ /**
+ * @readonly
+ * @var string
+ */
+ private $type;
+ /**
+ * @readonly
+ * @var string
+ */
+ private $methodName;
+ /**
+ * @readonly
+ * @var int
+ */
+ private $position;
+ public function __construct(string $type, string $methodName, int $position)
+ {
+ $this->type = $type;
+ $this->methodName = $methodName;
+ $this->position = $position;
}
public function getObjectType(): ObjectType
diff --git a/stubs/Carbon/Carbon.php b/stubs/Carbon/Carbon.php
deleted file mode 100644
index 22ab416a..00000000
--- a/stubs/Carbon/Carbon.php
+++ /dev/null
@@ -1,27 +0,0 @@
-
- */
-class Collection implements Enumerable
-{
-}
diff --git a/stubs/Illuminate/Support/Enumerable.php b/stubs/Illuminate/Support/Enumerable.php
deleted file mode 100644
index cb7f6a84..00000000
--- a/stubs/Illuminate/Support/Enumerable.php
+++ /dev/null
@@ -1,36 +0,0 @@
-
- * @extends \IteratorAggregate
- */
-interface Enumerable
-{
- /**
- * Run a filter over each of the items.
- *
- * @param (callable(TValue): bool)|null $callback
- * @return static
- */
- public function filter(?callable $callback = null);
-
- /**
- * Create a collection of all elements that do not pass a given truth test.
- *
- * @param (callable(TValue, TKey): bool)|bool|TValue $callback
- * @return static
- */
- public function reject($callback = true);
-}
diff --git a/stubs/Illuminate/Support/Facades/Route.php b/stubs/Illuminate/Support/Facades/Route.php
deleted file mode 100644
index 805b69db..00000000
--- a/stubs/Illuminate/Support/Facades/Route.php
+++ /dev/null
@@ -1,16 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector/Fixture/some_fixture.php.inc b/tests/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector/Fixture/some_fixture.php.inc
deleted file mode 100644
index 5f0f7254..00000000
--- a/tests/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector/Fixture/some_fixture.php.inc
+++ /dev/null
@@ -1,46 +0,0 @@
-app['validator']->make('...');
- }
-}
-
-?>
------
-app['validator'];
- $validator = $validationFactory->make('...');
- }
-}
-
-?>
diff --git a/tests/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector/config/configured_rule.php b/tests/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector/config/configured_rule.php
deleted file mode 100644
index b9b4ccbf..00000000
--- a/tests/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(CallOnAppArrayAccessToStandaloneAssignRector::class);
-};
diff --git a/tests/Rector/Cast/DatabaseExpressionCastsToMethodCallRector/DatabaseExpressionCastsToMethodCallRectorTest.php b/tests/Rector/Cast/DatabaseExpressionCastsToMethodCallRector/DatabaseExpressionCastsToMethodCallRectorTest.php
deleted file mode 100644
index 6c285fb4..00000000
--- a/tests/Rector/Cast/DatabaseExpressionCastsToMethodCallRector/DatabaseExpressionCastsToMethodCallRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Cast/DatabaseExpressionCastsToMethodCallRector/Fixture/fixture.php.inc b/tests/Rector/Cast/DatabaseExpressionCastsToMethodCallRector/Fixture/fixture.php.inc
deleted file mode 100644
index ffbcdc69..00000000
--- a/tests/Rector/Cast/DatabaseExpressionCastsToMethodCallRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,19 +0,0 @@
-
------
-getValue(\Illuminate\Support\Facades\DB::connection()->getQueryGrammar());
-
-?>
diff --git a/tests/Rector/Cast/DatabaseExpressionCastsToMethodCallRector/Fixture/skip_other_usages.php.inc b/tests/Rector/Cast/DatabaseExpressionCastsToMethodCallRector/Fixture/skip_other_usages.php.inc
deleted file mode 100644
index 811cbd07..00000000
--- a/tests/Rector/Cast/DatabaseExpressionCastsToMethodCallRector/Fixture/skip_other_usages.php.inc
+++ /dev/null
@@ -1,9 +0,0 @@
-where('name', DB::raw('select 1'))->get();
-
-?>
diff --git a/tests/Rector/Cast/DatabaseExpressionCastsToMethodCallRector/config/configured_rule.php b/tests/Rector/Cast/DatabaseExpressionCastsToMethodCallRector/config/configured_rule.php
deleted file mode 100644
index 7b684658..00000000
--- a/tests/Rector/Cast/DatabaseExpressionCastsToMethodCallRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(DatabaseExpressionCastsToMethodCallRector::class);
-};
diff --git a/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/AddArgumentDefaultValueRectorTest.php b/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/AddArgumentDefaultValueRectorTest.php
deleted file mode 100644
index 47479178..00000000
--- a/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/AddArgumentDefaultValueRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/Fixture/fixture.php.inc b/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/Fixture/fixture.php.inc
deleted file mode 100644
index e7a487bc..00000000
--- a/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-
------
-
diff --git a/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/Fixture/fixture2.php.inc b/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/Fixture/fixture2.php.inc
deleted file mode 100644
index f5d062cf..00000000
--- a/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/Fixture/fixture2.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-
------
-
diff --git a/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/config/configured_rule.php b/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/config/configured_rule.php
deleted file mode 100644
index b4befadc..00000000
--- a/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/config/configured_rule.php
+++ /dev/null
@@ -1,15 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->ruleWithConfiguration(AddArgumentDefaultValueRector::class, [
- new AddArgumentDefaultValue('Illuminate\Contracts\Events\Dispatcher', 'listen', 1, null),
- ]);
-};
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/AddGenericReturnTypeToRelationsRectorTest.php b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/AddGenericReturnTypeToRelationsRectorTest.php
deleted file mode 100644
index 3876b6a2..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/AddGenericReturnTypeToRelationsRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/empty-phpdoc.php.inc b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/empty-phpdoc.php.inc
deleted file mode 100644
index a3c29254..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/empty-phpdoc.php.inc
+++ /dev/null
@@ -1,42 +0,0 @@
-hasMany(Account::class);
- }
-}
-
-?>
------
-
- */
- public function accounts(): HasMany
- {
- return $this->hasMany(Account::class);
- }
-}
-
-?>
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/no-phpdoc.php.inc b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/no-phpdoc.php.inc
deleted file mode 100644
index ffa906d4..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/no-phpdoc.php.inc
+++ /dev/null
@@ -1,40 +0,0 @@
-hasMany(Account::class);
- }
-}
-
-?>
------
-
- */
- public function accounts(): HasMany
- {
- return $this->hasMany(Account::class);
- }
-}
-
-?>
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/phpdoc-with-existing-return.php.inc b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/phpdoc-with-existing-return.php.inc
deleted file mode 100644
index 9e5112c4..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/phpdoc-with-existing-return.php.inc
+++ /dev/null
@@ -1,43 +0,0 @@
-hasMany(Account::class);
- }
-}
-
-?>
------
-hasMany(Account::class);
- }
-}
-
-?>
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/phpdoc-with-supported-return.php.inc b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/phpdoc-with-supported-return.php.inc
deleted file mode 100644
index 0d3294f5..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/phpdoc-with-supported-return.php.inc
+++ /dev/null
@@ -1,43 +0,0 @@
-hasMany(Account::class);
- }
-}
-
-?>
------
-
- */
- public function accounts(): HasMany
- {
- return $this->hasMany(Account::class);
- }
-}
-
-?>
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/phpdoc-without-return.php.inc b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/phpdoc-without-return.php.inc
deleted file mode 100644
index 8a145a57..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/phpdoc-without-return.php.inc
+++ /dev/null
@@ -1,44 +0,0 @@
-hasMany(Account::class);
- }
-}
-
-?>
------
-
- */
- public function accounts(): HasMany
- {
- return $this->hasMany(Account::class);
- }
-}
-
-?>
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-in-trait.php.inc b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-in-trait.php.inc
deleted file mode 100644
index 5e5e0ffa..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-in-trait.php.inc
+++ /dev/null
@@ -1,50 +0,0 @@
-hasMany(Account::class);
- }
-}
-
-class User extends Model
-{
- use AccountTrait;
-}
-
-?>
------
-
- */
- public function accounts(): HasMany
- {
- return $this->hasMany(Account::class);
- }
-}
-
-class User extends Model
-{
- use AccountTrait;
-}
-
-?>
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-with-child-generics.php.inc b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-with-child-generics.php.inc
deleted file mode 100644
index 3069de72..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-with-child-generics.php.inc
+++ /dev/null
@@ -1,40 +0,0 @@
-belongsTo(Account::class);
- }
-}
-
-?>
------
-
- */
- public function accounts(): BelongsTo
- {
- return $this->belongsTo(Account::class);
- }
-}
-
-?>
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-with-existing-child-generic.php.inc b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-with-existing-child-generic.php.inc
deleted file mode 100644
index 778daa8e..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-with-existing-child-generic.php.inc
+++ /dev/null
@@ -1,19 +0,0 @@
-
- */
- public function accounts(): BelongsTo
- {
- return $this->belongsTo(Account::class);
- }
-}
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-with-existing-morph-to-child-generic.php.inc b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-with-existing-morph-to-child-generic.php.inc
deleted file mode 100644
index 01066874..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-with-existing-morph-to-child-generic.php.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-
- */
- public function translatable(): MorphTo
- {
- return $this->morphTo('translatable', 'model', 'value');
- }
-}
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-without-return-type.php.inc b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-without-return-type.php.inc
deleted file mode 100644
index 9b7a1ccb..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-without-return-type.php.inc
+++ /dev/null
@@ -1,37 +0,0 @@
-hasMany(Account::class);
- }
-}
-
-?>
------
-hasMany(Account::class);
- }
-}
-
-?>
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/config/configured_rule.php b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/config/configured_rule.php
deleted file mode 100644
index aacc7549..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(AddGenericReturnTypeToRelationsRector::class);
-};
diff --git a/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/AddParentBootToModelClassMethodRectorTest.php b/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/AddParentBootToModelClassMethodRectorTest.php
deleted file mode 100644
index 821edf09..00000000
--- a/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/AddParentBootToModelClassMethodRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/Fixture/fixture.php.inc b/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/Fixture/fixture.php.inc
deleted file mode 100644
index c9d237bc..00000000
--- a/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,30 +0,0 @@
-
------
-
diff --git a/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/Fixture/on_the_last_line.php.inc b/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/Fixture/on_the_last_line.php.inc
deleted file mode 100644
index 4a10668c..00000000
--- a/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/Fixture/on_the_last_line.php.inc
+++ /dev/null
@@ -1,33 +0,0 @@
-
------
-
diff --git a/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/config/configured_rule.php b/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/config/configured_rule.php
deleted file mode 100644
index 46fbd68a..00000000
--- a/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(AddParentBootToModelClassMethodRector::class);
-};
diff --git a/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/AddParentRegisterToEventServiceProviderRectorTest.php b/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/AddParentRegisterToEventServiceProviderRectorTest.php
deleted file mode 100644
index 4e2a3c61..00000000
--- a/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/AddParentRegisterToEventServiceProviderRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/Fixture/fixture.php.inc b/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/Fixture/fixture.php.inc
deleted file mode 100644
index eee28d2a..00000000
--- a/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,30 +0,0 @@
-
------
-
diff --git a/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/Fixture/on_the_last_line.php.inc b/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/Fixture/on_the_last_line.php.inc
deleted file mode 100644
index ce1e78e9..00000000
--- a/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/Fixture/on_the_last_line.php.inc
+++ /dev/null
@@ -1,33 +0,0 @@
-
------
-
diff --git a/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/config/configured_rule.php b/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/config/configured_rule.php
deleted file mode 100644
index d5513074..00000000
--- a/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(AddParentRegisterToEventServiceProviderRector::class);
-};
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-accessors-with-value-parameter.php.inc b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-accessors-with-value-parameter.php.inc
deleted file mode 100644
index c602020a..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-accessors-with-value-parameter.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-
------
-
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-accessors-without-value-parameter.php.inc b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-accessors-without-value-parameter.php.inc
deleted file mode 100644
index 7ea407de..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-accessors-without-value-parameter.php.inc
+++ /dev/null
@@ -1,21 +0,0 @@
-first_name);
- }
-}
-?>
------
-first_name);
- });
- }
-}
-?>
\ No newline at end of file
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-and-preserve-doc-blocks.php.inc b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-and-preserve-doc-blocks.php.inc
deleted file mode 100644
index 92d5f3f6..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-and-preserve-doc-blocks.php.inc
+++ /dev/null
@@ -1,33 +0,0 @@
-first_name);
- }
-}
-?>
------
-first_name);
- });
- }
-}
-?>
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-multiple-mutators.php.inc b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-multiple-mutators.php.inc
deleted file mode 100644
index 065d3918..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-multiple-mutators.php.inc
+++ /dev/null
@@ -1,42 +0,0 @@
-test = 'asdf';
- $this->attributes['first_name'] = strtolower($value);
- $this->attributes['first_name_upper'] = strtoupper($value);
- }
-}
-?>
------
-test = 'asdf';
- return ['first_name' => strtolower($value), 'first_name_upper' => strtoupper($value)];
- });
- }
-}
-?>
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-mutators-and-accessors-in-the-same-method.php.inc b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-mutators-and-accessors-in-the-same-method.php.inc
deleted file mode 100644
index 21ee9257..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-mutators-and-accessors-in-the-same-method.php.inc
+++ /dev/null
@@ -1,39 +0,0 @@
-attributes['first_name'] = strtolower($value);
- $this->attributes['first_name_upper'] = strtoupper($value);
- }
-}
-?>
------
- strtolower($value), 'first_name_upper' => strtoupper($value)];
- });
- }
-}
-?>
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-mutators.php.inc b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-mutators.php.inc
deleted file mode 100644
index 2e235e36..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-mutators.php.inc
+++ /dev/null
@@ -1,37 +0,0 @@
-attributes['first_name'] = strtolower($value);
- }
-}
-?>
------
- strtolower($value)];
- });
- }
-}
-?>
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/skip-classes-that-are-not-eloquent-models.php.inc b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/skip-classes-that-are-not-eloquent-models.php.inc
deleted file mode 100644
index ff5290bb..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/skip-classes-that-are-not-eloquent-models.php.inc
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/skip-classes-that-have-no-parents.php.inc b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/skip-classes-that-have-no-parents.php.inc
deleted file mode 100644
index 2e5325e9..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/skip-classes-that-have-no-parents.php.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/MigrateToSimplifiedAttributeRectorTest.php b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/MigrateToSimplifiedAttributeRectorTest.php
deleted file mode 100644
index c92939d1..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/MigrateToSimplifiedAttributeRectorTest.php
+++ /dev/null
@@ -1,34 +0,0 @@
-
- */
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- /**
- * @test
- */
- #[DataProvider('provideData')]
- public function test(string $filePath): void
- {
- $this->doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/config/configured_rule.php b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/config/configured_rule.php
deleted file mode 100644
index 2601381a..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(MigrateToSimplifiedAttributeRector::class);
-};
diff --git a/tests/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector/AddExtendsAnnotationToModelFactoriesRectorTest.php b/tests/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector/AddExtendsAnnotationToModelFactoriesRectorTest.php
deleted file mode 100644
index e9260292..00000000
--- a/tests/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector/AddExtendsAnnotationToModelFactoriesRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector/Fixture/fixture.php.inc b/tests/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector/Fixture/fixture.php.inc
deleted file mode 100644
index 129bd4d2..00000000
--- a/tests/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,28 +0,0 @@
-
------
-
- */
-class UserFactory extends Factory
-{
- protected $model = \App\Models\User::class;
-}
-
-?>
diff --git a/tests/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector/Fixture/skip_existing_extends_tag.php.inc b/tests/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector/Fixture/skip_existing_extends_tag.php.inc
deleted file mode 100644
index 230c16ba..00000000
--- a/tests/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector/Fixture/skip_existing_extends_tag.php.inc
+++ /dev/null
@@ -1,15 +0,0 @@
-
- */
-class UserFactory extends Factory
-{
- protected $model = \App\Models\User::class;
-}
-
-?>
diff --git a/tests/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector/Fixture/using_class_string_as_model_type.php.inc b/tests/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector/Fixture/using_class_string_as_model_type.php.inc
deleted file mode 100644
index 996e194c..00000000
--- a/tests/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector/Fixture/using_class_string_as_model_type.php.inc
+++ /dev/null
@@ -1,28 +0,0 @@
-
------
-
- */
-class UserFactory extends Factory
-{
- protected $model = 'App\Models\User';
-}
-
-?>
diff --git a/tests/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector/config/configured_rule.php b/tests/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector/config/configured_rule.php
deleted file mode 100644
index 0ac8b9ef..00000000
--- a/tests/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(AddExtendsAnnotationToModelFactoriesRector::class);
-};
diff --git a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/AddMockConsoleOutputFalseToConsoleTestsRectorTest.php b/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/AddMockConsoleOutputFalseToConsoleTestsRectorTest.php
deleted file mode 100644
index fd7f2ca1..00000000
--- a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/AddMockConsoleOutputFalseToConsoleTestsRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/existing_set_up.php.inc b/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/existing_set_up.php.inc
deleted file mode 100644
index ef56deee..00000000
--- a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/existing_set_up.php.inc
+++ /dev/null
@@ -1,44 +0,0 @@
-assertEquals('content', \trim(Artisan::output()));
- }
-}
-
-?>
------
-mockConsoleOutput = false;
- }
-
- public function test(): void
- {
- $this->assertEquals('content', \trim(Artisan::output()));
- }
-}
-
-?>
diff --git a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/fixture.php.inc b/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/fixture.php.inc
deleted file mode 100644
index 81be8f20..00000000
--- a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,38 +0,0 @@
-assertEquals('content', \trim(Artisan::output()));
- }
-}
-
-?>
------
-mockConsoleOutput = false;
- }
- public function test(): void
- {
- $this->assertEquals('content', \trim(Artisan::output()));
- }
-}
-
-?>
diff --git a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/new_artisan.php.inc b/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/new_artisan.php.inc
deleted file mode 100644
index ca7b9915..00000000
--- a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/new_artisan.php.inc
+++ /dev/null
@@ -1,38 +0,0 @@
-assertEquals('content', \trim((new Artisan())::output()));
- }
-}
-
-?>
------
-mockConsoleOutput = false;
- }
- public function test(): void
- {
- $this->assertEquals('content', \trim((new Artisan())::output()));
- }
-}
-
-?>
diff --git a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/skip_already_set.php.inc b/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/skip_already_set.php.inc
deleted file mode 100644
index 2069d659..00000000
--- a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/skip_already_set.php.inc
+++ /dev/null
@@ -1,20 +0,0 @@
-mockConsoleOutput = false;
- }
-
- public function test(): void
- {
- $this->assertEquals('content', \trim(Artisan::output()));
- }
-}
diff --git a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/config/configured_rule.php b/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/config/configured_rule.php
deleted file mode 100644
index 4a96c9f0..00000000
--- a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(AddMockConsoleOutputFalseToConsoleTestsRector::class);
-};
diff --git a/tests/Rector/Class_/AnonymousMigrationsRector/AnonymousMigrationsRectorTest.php b/tests/Rector/Class_/AnonymousMigrationsRector/AnonymousMigrationsRectorTest.php
deleted file mode 100644
index 75cd343e..00000000
--- a/tests/Rector/Class_/AnonymousMigrationsRector/AnonymousMigrationsRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Class_/AnonymousMigrationsRector/Fixture/fixture.php.inc b/tests/Rector/Class_/AnonymousMigrationsRector/Fixture/fixture.php.inc
deleted file mode 100644
index 8b4d6952..00000000
--- a/tests/Rector/Class_/AnonymousMigrationsRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,25 +0,0 @@
-
------
-
diff --git a/tests/Rector/Class_/AnonymousMigrationsRector/Fixture/skip_abstract_migration.php.inc b/tests/Rector/Class_/AnonymousMigrationsRector/Fixture/skip_abstract_migration.php.inc
deleted file mode 100644
index 35ccd96c..00000000
--- a/tests/Rector/Class_/AnonymousMigrationsRector/Fixture/skip_abstract_migration.php.inc
+++ /dev/null
@@ -1,10 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(AnonymousMigrationsRector::class);
-};
diff --git a/tests/Rector/Class_/CashierStripeOptionsToStripeRector/CashierStripeOptionsToStripeRectorTest.php b/tests/Rector/Class_/CashierStripeOptionsToStripeRector/CashierStripeOptionsToStripeRectorTest.php
deleted file mode 100644
index f18262f1..00000000
--- a/tests/Rector/Class_/CashierStripeOptionsToStripeRector/CashierStripeOptionsToStripeRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Class_/CashierStripeOptionsToStripeRector/Fixture/fixture.php.inc b/tests/Rector/Class_/CashierStripeOptionsToStripeRector/Fixture/fixture.php.inc
deleted file mode 100644
index e2116cc1..00000000
--- a/tests/Rector/Class_/CashierStripeOptionsToStripeRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,29 +0,0 @@
-
------
-
diff --git a/tests/Rector/Class_/CashierStripeOptionsToStripeRector/Source/User.php b/tests/Rector/Class_/CashierStripeOptionsToStripeRector/Source/User.php
deleted file mode 100644
index 82da7de3..00000000
--- a/tests/Rector/Class_/CashierStripeOptionsToStripeRector/Source/User.php
+++ /dev/null
@@ -1,11 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(CashierStripeOptionsToStripeRector::class);
-};
diff --git a/tests/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector/Fixture/fixture.php.inc b/tests/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector/Fixture/fixture.php.inc
deleted file mode 100644
index 19fe51de..00000000
--- a/tests/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,43 +0,0 @@
-
------
-
diff --git a/tests/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector/Fixture/skip_if_method_already_exists.php.inc b/tests/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector/Fixture/skip_if_method_already_exists.php.inc
deleted file mode 100644
index 12a1a108..00000000
--- a/tests/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector/Fixture/skip_if_method_already_exists.php.inc
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/tests/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector/Fixture/skip_non_component_class.php.inc b/tests/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector/Fixture/skip_non_component_class.php.inc
deleted file mode 100644
index 8e7ef348..00000000
--- a/tests/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector/Fixture/skip_non_component_class.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/tests/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector/Fixture/skip_non_public_methods.php.inc b/tests/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector/Fixture/skip_non_public_methods.php.inc
deleted file mode 100644
index 0a878b99..00000000
--- a/tests/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector/Fixture/skip_non_public_methods.php.inc
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/tests/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector/LivewireComponentComputedMethodToComputedAttributeRectorTest.php b/tests/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector/LivewireComponentComputedMethodToComputedAttributeRectorTest.php
deleted file mode 100644
index 009faee3..00000000
--- a/tests/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector/LivewireComponentComputedMethodToComputedAttributeRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector/config/configured_rule.php b/tests/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector/config/configured_rule.php
deleted file mode 100644
index 352c797c..00000000
--- a/tests/Rector/Class_/LivewireComponentComputedMethodToComputedAttributeRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(LivewireComponentComputedMethodToComputedAttributeRector::class);
-};
diff --git a/tests/Rector/Class_/LivewireComponentQueryStringToUrlAttributeRector/Fixture/does_not_double_apply_attribute.php.inc b/tests/Rector/Class_/LivewireComponentQueryStringToUrlAttributeRector/Fixture/does_not_double_apply_attribute.php.inc
deleted file mode 100644
index 6dda0fc2..00000000
--- a/tests/Rector/Class_/LivewireComponentQueryStringToUrlAttributeRector/Fixture/does_not_double_apply_attribute.php.inc
+++ /dev/null
@@ -1,37 +0,0 @@
-
------
-
diff --git a/tests/Rector/Class_/LivewireComponentQueryStringToUrlAttributeRector/Fixture/fixture.php.inc b/tests/Rector/Class_/LivewireComponentQueryStringToUrlAttributeRector/Fixture/fixture.php.inc
deleted file mode 100644
index a75cbbae..00000000
--- a/tests/Rector/Class_/LivewireComponentQueryStringToUrlAttributeRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,51 +0,0 @@
- ['except' => 1, 'as' => 'foo'],
- self::FOO_BAR,
- ];
-}
-
-?>
------
-
diff --git a/tests/Rector/Class_/LivewireComponentQueryStringToUrlAttributeRector/Fixture/skip_non_component_class.php.inc b/tests/Rector/Class_/LivewireComponentQueryStringToUrlAttributeRector/Fixture/skip_non_component_class.php.inc
deleted file mode 100644
index aa9f8ee3..00000000
--- a/tests/Rector/Class_/LivewireComponentQueryStringToUrlAttributeRector/Fixture/skip_non_component_class.php.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-
diff --git a/tests/Rector/Class_/LivewireComponentQueryStringToUrlAttributeRector/LivewireComponentQueryStringToUrlAttributeRectorTest.php b/tests/Rector/Class_/LivewireComponentQueryStringToUrlAttributeRector/LivewireComponentQueryStringToUrlAttributeRectorTest.php
deleted file mode 100644
index 8e8153ab..00000000
--- a/tests/Rector/Class_/LivewireComponentQueryStringToUrlAttributeRector/LivewireComponentQueryStringToUrlAttributeRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Class_/LivewireComponentQueryStringToUrlAttributeRector/config/configured_rule.php b/tests/Rector/Class_/LivewireComponentQueryStringToUrlAttributeRector/config/configured_rule.php
deleted file mode 100644
index 6d220b79..00000000
--- a/tests/Rector/Class_/LivewireComponentQueryStringToUrlAttributeRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(LivewireComponentQueryStringToUrlAttributeRector::class);
-};
diff --git a/tests/Rector/Class_/ModelCastsPropertyToCastsMethodRector/Fixture/fixture.php.inc b/tests/Rector/Class_/ModelCastsPropertyToCastsMethodRector/Fixture/fixture.php.inc
deleted file mode 100644
index 4322ce30..00000000
--- a/tests/Rector/Class_/ModelCastsPropertyToCastsMethodRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,34 +0,0 @@
- 'datetime',
- 'age' => 'integer',
- ];
-}
-
-?>
------
- 'datetime',
- 'age' => 'integer',
- ];
- }
-}
-
-?>
diff --git a/tests/Rector/Class_/ModelCastsPropertyToCastsMethodRector/Fixture/fixture_with_phpdoc.php.inc b/tests/Rector/Class_/ModelCastsPropertyToCastsMethodRector/Fixture/fixture_with_phpdoc.php.inc
deleted file mode 100644
index 2b879318..00000000
--- a/tests/Rector/Class_/ModelCastsPropertyToCastsMethodRector/Fixture/fixture_with_phpdoc.php.inc
+++ /dev/null
@@ -1,44 +0,0 @@
-
- */
- protected $casts = [
- 'birthday' => 'datetime',
- 'age' => 'integer',
- ];
-}
-
-?>
------
-
- */
- protected function casts(): array
- {
- return [
- 'birthday' => 'datetime',
- 'age' => 'integer',
- ];
- }
-}
-
-?>
diff --git a/tests/Rector/Class_/ModelCastsPropertyToCastsMethodRector/Fixture/skip_class_with_casts_method.php.inc b/tests/Rector/Class_/ModelCastsPropertyToCastsMethodRector/Fixture/skip_class_with_casts_method.php.inc
deleted file mode 100644
index 4a3ec4bc..00000000
--- a/tests/Rector/Class_/ModelCastsPropertyToCastsMethodRector/Fixture/skip_class_with_casts_method.php.inc
+++ /dev/null
@@ -1,22 +0,0 @@
- 'string',
- ];
-
- private function casts(): array
- {
- return [
- 'birthday' => 'datetime',
- 'age' => 'integer',
- ];
- }
-}
-
-?>
diff --git a/tests/Rector/Class_/ModelCastsPropertyToCastsMethodRector/Fixture/skip_non_model_classes.php.inc b/tests/Rector/Class_/ModelCastsPropertyToCastsMethodRector/Fixture/skip_non_model_classes.php.inc
deleted file mode 100644
index 3f42bb03..00000000
--- a/tests/Rector/Class_/ModelCastsPropertyToCastsMethodRector/Fixture/skip_non_model_classes.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
- 'datetime',
- 'age' => 'integer',
- ];
-}
-
-?>
diff --git a/tests/Rector/Class_/ModelCastsPropertyToCastsMethodRector/ModelCastsPropertyToCastsMethodRectorTest.php b/tests/Rector/Class_/ModelCastsPropertyToCastsMethodRector/ModelCastsPropertyToCastsMethodRectorTest.php
deleted file mode 100644
index 18e975b9..00000000
--- a/tests/Rector/Class_/ModelCastsPropertyToCastsMethodRector/ModelCastsPropertyToCastsMethodRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Class_/ModelCastsPropertyToCastsMethodRector/config/configured_rule.php b/tests/Rector/Class_/ModelCastsPropertyToCastsMethodRector/config/configured_rule.php
deleted file mode 100644
index a8477c7a..00000000
--- a/tests/Rector/Class_/ModelCastsPropertyToCastsMethodRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(ModelCastsPropertyToCastsMethodRector::class);
-};
diff --git a/tests/Rector/Class_/PropertyDeferToDeferrableProviderToRector/Fixture/fixture.php.inc b/tests/Rector/Class_/PropertyDeferToDeferrableProviderToRector/Fixture/fixture.php.inc
deleted file mode 100644
index cfc54a3e..00000000
--- a/tests/Rector/Class_/PropertyDeferToDeferrableProviderToRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-
------
-
diff --git a/tests/Rector/Class_/PropertyDeferToDeferrableProviderToRector/Fixture/skip_false_defer.php.inc b/tests/Rector/Class_/PropertyDeferToDeferrableProviderToRector/Fixture/skip_false_defer.php.inc
deleted file mode 100644
index 8d9351af..00000000
--- a/tests/Rector/Class_/PropertyDeferToDeferrableProviderToRector/Fixture/skip_false_defer.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Class_/PropertyDeferToDeferrableProviderToRector/config/configured_rule.php b/tests/Rector/Class_/PropertyDeferToDeferrableProviderToRector/config/configured_rule.php
deleted file mode 100644
index 3296df6e..00000000
--- a/tests/Rector/Class_/PropertyDeferToDeferrableProviderToRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(PropertyDeferToDeferrableProviderToRector::class);
-};
diff --git a/tests/Rector/Class_/RemoveModelPropertyFromFactoriesRector/Fixture/fixture.php.inc b/tests/Rector/Class_/RemoveModelPropertyFromFactoriesRector/Fixture/fixture.php.inc
deleted file mode 100644
index 8c0f8d5b..00000000
--- a/tests/Rector/Class_/RemoveModelPropertyFromFactoriesRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,24 +0,0 @@
-
------
-
diff --git a/tests/Rector/Class_/RemoveModelPropertyFromFactoriesRector/RemoveModelPropertyFromFactoriesRectorTest.php b/tests/Rector/Class_/RemoveModelPropertyFromFactoriesRector/RemoveModelPropertyFromFactoriesRectorTest.php
deleted file mode 100644
index 7a0986d4..00000000
--- a/tests/Rector/Class_/RemoveModelPropertyFromFactoriesRector/RemoveModelPropertyFromFactoriesRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Class_/RemoveModelPropertyFromFactoriesRector/config/configured_rule.php b/tests/Rector/Class_/RemoveModelPropertyFromFactoriesRector/config/configured_rule.php
deleted file mode 100644
index c82e1aeb..00000000
--- a/tests/Rector/Class_/RemoveModelPropertyFromFactoriesRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(RemoveModelPropertyFromFactoriesRector::class);
-};
diff --git a/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Fixture/apply_to_inheriting_tests.php.inc b/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Fixture/apply_to_inheriting_tests.php.inc
deleted file mode 100644
index 80eae20f..00000000
--- a/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Fixture/apply_to_inheriting_tests.php.inc
+++ /dev/null
@@ -1,38 +0,0 @@
-expectsJobs([\App\Jobs\SomeJob::class, \App\Jobs\SomeOtherJob::class]);
- $this->expectsEvents(\App\Events\SomeEvent::class);
-
- $this->get('/');
- }
-}
-?>
------
-get('/');
- \Illuminate\Support\Facades\Bus::assertDispatched(\App\Jobs\SomeJob::class);
- \Illuminate\Support\Facades\Bus::assertDispatched(\App\Jobs\SomeOtherJob::class);
- \Illuminate\Support\Facades\Event::assertDispatched(\App\Events\SomeEvent::class);
- }
-}
-?>
diff --git a/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Fixture/apply_with_strings.php.inc b/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Fixture/apply_with_strings.php.inc
deleted file mode 100644
index 7fbd0367..00000000
--- a/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Fixture/apply_with_strings.php.inc
+++ /dev/null
@@ -1,38 +0,0 @@
-expectsJobs(['\App\Jobs\SomeJob', '\App\Jobs\SomeOtherJob']);
- $this->expectsEvents('\App\Events\SomeEvent');
-
- $this->get('/');
- }
-}
-?>
------
-get('/');
- \Illuminate\Support\Facades\Bus::assertDispatched('\App\Jobs\SomeJob');
- \Illuminate\Support\Facades\Bus::assertDispatched('\App\Jobs\SomeOtherJob');
- \Illuminate\Support\Facades\Event::assertDispatched('\App\Events\SomeEvent');
- }
-}
-?>
diff --git a/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Fixture/fixture.php.inc b/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Fixture/fixture.php.inc
deleted file mode 100644
index 07c9cb95..00000000
--- a/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,38 +0,0 @@
-expectsJobs([\App\Jobs\SomeJob::class, \App\Jobs\SomeOtherJob::class]);
- $this->expectsEvents(\App\Events\SomeEvent::class);
-
- $this->get('/');
- }
-}
-?>
------
-get('/');
- \Illuminate\Support\Facades\Bus::assertDispatched(\App\Jobs\SomeJob::class);
- \Illuminate\Support\Facades\Bus::assertDispatched(\App\Jobs\SomeOtherJob::class);
- \Illuminate\Support\Facades\Event::assertDispatched(\App\Events\SomeEvent::class);
- }
-}
-?>
diff --git a/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Fixture/skip_non_expects_methods.php.inc b/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Fixture/skip_non_expects_methods.php.inc
deleted file mode 100644
index 5d83a2ee..00000000
--- a/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Fixture/skip_non_expects_methods.php.inc
+++ /dev/null
@@ -1,16 +0,0 @@
-expectsSomething([\App\Jobs\SomeJob::class, \App\Jobs\SomeOtherJob::class]);
-
- $this->get('/');
- }
-}
-?>
diff --git a/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Fixture/skip_non_illuminate_test.php.inc b/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Fixture/skip_non_illuminate_test.php.inc
deleted file mode 100644
index 2a871885..00000000
--- a/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Fixture/skip_non_illuminate_test.php.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-expectsJobs([\App\Jobs\SomeJob::class, \App\Jobs\SomeOtherJob::class]);
- $this->expectsEvents(\App\Events\SomeEvent::class);
-
- $this->get('/');
- }
-}
-?>
diff --git a/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Fixture/skip_non_this_variables_calls.php.inc b/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Fixture/skip_non_this_variables_calls.php.inc
deleted file mode 100644
index 858f1368..00000000
--- a/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Fixture/skip_non_this_variables_calls.php.inc
+++ /dev/null
@@ -1,15 +0,0 @@
-expectsJobs([\App\Jobs\SomeJob::class, \App\Jobs\SomeOtherJob::class]);
- $variable->expectsEvents(\App\Events\SomeEvent::class);
- }
-}
-?>
diff --git a/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/ReplaceExpectsMethodsInTestsRectorTest.php b/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/ReplaceExpectsMethodsInTestsRectorTest.php
deleted file mode 100644
index 1f313649..00000000
--- a/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/ReplaceExpectsMethodsInTestsRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Source/TestCase.php b/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Source/TestCase.php
deleted file mode 100644
index 634f417e..00000000
--- a/tests/Rector/Class_/ReplaceExpectsMethodsInTestsRector/Source/TestCase.php
+++ /dev/null
@@ -1,9 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(ReplaceExpectsMethodsInTestsRector::class);
-};
diff --git a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/Fixture/casts_property_not_exists.php.inc b/tests/Rector/Class_/UnifyModelDatesWithCastsRector/Fixture/casts_property_not_exists.php.inc
deleted file mode 100644
index ec98d0b8..00000000
--- a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/Fixture/casts_property_not_exists.php.inc
+++ /dev/null
@@ -1,25 +0,0 @@
-
------
- 'datetime'];
-}
-
-?>
diff --git a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/Fixture/dates_exists_in_casts.php.inc b/tests/Rector/Class_/UnifyModelDatesWithCastsRector/Fixture/dates_exists_in_casts.php.inc
deleted file mode 100644
index 8fdf6a1a..00000000
--- a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/Fixture/dates_exists_in_casts.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
- 'date:Y-m',
- ];
-
- protected $dates = ['birthday'];
-}
-
-?>
------
- 'date:Y-m',
- ];
-}
-
-?>
diff --git a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/Fixture/fixture.php.inc b/tests/Rector/Class_/UnifyModelDatesWithCastsRector/Fixture/fixture.php.inc
deleted file mode 100644
index 5c08fa03..00000000
--- a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
- 'integer',
- ];
-
- protected $dates = ['birthday', 'created_at'];
-}
-
-?>
------
- 'integer', 'birthday' => 'datetime', 'created_at' => 'datetime',
- ];
-}
-
-?>
diff --git a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/UnifyModelDatesWithCastsRectorTest.php b/tests/Rector/Class_/UnifyModelDatesWithCastsRector/UnifyModelDatesWithCastsRectorTest.php
deleted file mode 100644
index b3743c30..00000000
--- a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/UnifyModelDatesWithCastsRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/config/configured_rule.php b/tests/Rector/Class_/UnifyModelDatesWithCastsRector/config/configured_rule.php
deleted file mode 100644
index e5f85c39..00000000
--- a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(UnifyModelDatesWithCastsRector::class);
-};
diff --git a/tests/Rector/Empty_/EmptyToBlankAndFilledFuncRector/EmptyToBlankAndFilledFuncRectorTest.php b/tests/Rector/Empty_/EmptyToBlankAndFilledFuncRector/EmptyToBlankAndFilledFuncRectorTest.php
deleted file mode 100644
index 5cf7943f..00000000
--- a/tests/Rector/Empty_/EmptyToBlankAndFilledFuncRector/EmptyToBlankAndFilledFuncRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Empty_/EmptyToBlankAndFilledFuncRector/Fixture/fixture_with_empty.php.inc b/tests/Rector/Empty_/EmptyToBlankAndFilledFuncRector/Fixture/fixture_with_empty.php.inc
deleted file mode 100644
index 2a778563..00000000
--- a/tests/Rector/Empty_/EmptyToBlankAndFilledFuncRector/Fixture/fixture_with_empty.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-
------
-
diff --git a/tests/Rector/Empty_/EmptyToBlankAndFilledFuncRector/Fixture/fixture_with_not_empty.php.inc b/tests/Rector/Empty_/EmptyToBlankAndFilledFuncRector/Fixture/fixture_with_not_empty.php.inc
deleted file mode 100644
index 63cd73ce..00000000
--- a/tests/Rector/Empty_/EmptyToBlankAndFilledFuncRector/Fixture/fixture_with_not_empty.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-
------
-
diff --git a/tests/Rector/Empty_/EmptyToBlankAndFilledFuncRector/config/configured_rule.php b/tests/Rector/Empty_/EmptyToBlankAndFilledFuncRector/config/configured_rule.php
deleted file mode 100644
index 70249cc0..00000000
--- a/tests/Rector/Empty_/EmptyToBlankAndFilledFuncRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(EmptyToBlankAndFilledFuncRector::class);
-};
diff --git a/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/AppEnvironmentComparisonToParameterRectorTest.php b/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/AppEnvironmentComparisonToParameterRectorTest.php
deleted file mode 100644
index 09d366b3..00000000
--- a/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/AppEnvironmentComparisonToParameterRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/Fixture/fixture.php.inc b/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/Fixture/fixture.php.inc
deleted file mode 100644
index 93433a87..00000000
--- a/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-environment() === 'production';
-'staging' == $app->environment();
-
-if ($app->environment() === 'production') {
-}
-
-\Illuminate\Support\Facades\App::environment() === 'production';
-\App::environment() === 'production';
-
-?>
------
-environment('production');
-$app->environment('staging');
-
-if ($app->environment('production')) {
-}
-
-\Illuminate\Support\Facades\App::environment('production');
-\App::environment('production');
-
-?>
diff --git a/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/Fixture/skip_if_already_using_parameter.php.inc b/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/Fixture/skip_if_already_using_parameter.php.inc
deleted file mode 100644
index 922da8c0..00000000
--- a/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/Fixture/skip_if_already_using_parameter.php.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-environment('production') === true;
-
-?>
diff --git a/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/Fixture/skip_if_not_application_object.php.inc b/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/Fixture/skip_if_not_application_object.php.inc
deleted file mode 100644
index c00fbf60..00000000
--- a/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/Fixture/skip_if_not_application_object.php.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-environment() === 'production';
-
-?>
diff --git a/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/Fixture/skip_if_not_comparing_to_string.php.inc b/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/Fixture/skip_if_not_comparing_to_string.php.inc
deleted file mode 100644
index 7c05d2a5..00000000
--- a/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/Fixture/skip_if_not_comparing_to_string.php.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-environment() === true;
-
-?>
diff --git a/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/Fixture/skip_if_not_using_facade.php.inc b/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/Fixture/skip_if_not_using_facade.php.inc
deleted file mode 100644
index 5ac0e5c3..00000000
--- a/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/Fixture/skip_if_not_using_facade.php.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/config/configured_rule.php b/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/config/configured_rule.php
deleted file mode 100644
index f8cced15..00000000
--- a/tests/Rector/Expr/AppEnvironmentComparisonToParameterRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(AppEnvironmentComparisonToParameterRector::class);
-};
diff --git a/tests/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/Fixture/fixture.php.inc b/tests/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/Fixture/fixture.php.inc
deleted file mode 100644
index 6b0bebfb..00000000
--- a/tests/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,51 +0,0 @@
-
------
-
diff --git a/tests/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/Fixture/skips_non_ends_with.php.inc b/tests/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/Fixture/skips_non_ends_with.php.inc
deleted file mode 100644
index ece854c8..00000000
--- a/tests/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/Fixture/skips_non_ends_with.php.inc
+++ /dev/null
@@ -1,19 +0,0 @@
-
------
-
diff --git a/tests/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/Fixture/skips_non_starts_with.php.inc b/tests/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/Fixture/skips_non_starts_with.php.inc
deleted file mode 100644
index 28e5dce2..00000000
--- a/tests/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/Fixture/skips_non_starts_with.php.inc
+++ /dev/null
@@ -1,19 +0,0 @@
-
------
-
diff --git a/tests/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/SubStrToStartsWithOrEndsWithStaticMethodCallRectorTest.php b/tests/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/SubStrToStartsWithOrEndsWithStaticMethodCallRectorTest.php
deleted file mode 100644
index 9ee4d13b..00000000
--- a/tests/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/SubStrToStartsWithOrEndsWithStaticMethodCallRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/config/configured_rule.php b/tests/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/config/configured_rule.php
deleted file mode 100644
index 00fec928..00000000
--- a/tests/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(SubStrToStartsWithOrEndsWithStaticMethodCallRector::class);
-};
diff --git a/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/ArgumentFuncCallToMethodCallRectorTest.php b/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/ArgumentFuncCallToMethodCallRectorTest.php
deleted file mode 100644
index 5be94539..00000000
--- a/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/ArgumentFuncCallToMethodCallRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/auth.php.inc b/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/auth.php.inc
deleted file mode 100644
index 664d3af5..00000000
--- a/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/auth.php.inc
+++ /dev/null
@@ -1,30 +0,0 @@
-
------
-guard;
- }
-}
-
-?>
diff --git a/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/back.php.inc b/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/back.php.inc
deleted file mode 100644
index 865abe30..00000000
--- a/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/back.php.inc
+++ /dev/null
@@ -1,40 +0,0 @@
-
------
-redirector->back();
- }
-
- public function actionWithParams()
- {
- return $this->redirector->back(200);
- }
-}
-
-?>
diff --git a/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/broadcast.php.inc b/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/broadcast.php.inc
deleted file mode 100644
index e7d5e9d0..00000000
--- a/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/broadcast.php.inc
+++ /dev/null
@@ -1,30 +0,0 @@
-
------
-broadcastingFactory->event('template.blade');
- }
-}
-
-?>
diff --git a/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/config.php.inc b/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/config.php.inc
deleted file mode 100644
index 9249f9ec..00000000
--- a/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/config.php.inc
+++ /dev/null
@@ -1,40 +0,0 @@
- $value]);
- }
-}
-
-?>
------
-configRepository->get('value');
- }
-
- public function actionSet($value)
- {
- $this->configRepository->set(['value' => $value]);
- }
-}
-
-?>
diff --git a/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/route.php.inc b/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/route.php.inc
deleted file mode 100644
index fa39ff7a..00000000
--- a/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/route.php.inc
+++ /dev/null
@@ -1,30 +0,0 @@
-
------
-urlGenerator->route('template.blade');
- }
-}
-
-?>
diff --git a/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/session.php.inc b/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/session.php.inc
deleted file mode 100644
index b092f650..00000000
--- a/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/session.php.inc
+++ /dev/null
@@ -1,34 +0,0 @@
-
------
-sessionManager;
- $this->sessionManager->put(['key']);
- $this->sessionManager->get('key', 'value');
- }
-}
-
-?>
diff --git a/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/skip_static_method.php.inc b/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/skip_static_method.php.inc
deleted file mode 100644
index 9017b1ff..00000000
--- a/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/skip_static_method.php.inc
+++ /dev/null
@@ -1,11 +0,0 @@
-
------
-viewFactory->make('template.blade');
- $viewFactory = $this->viewFactory;
- }
-}
-
-?>
diff --git a/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/config/configured_rule.php b/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/config/configured_rule.php
deleted file mode 100644
index c324da72..00000000
--- a/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/config/configured_rule.php
+++ /dev/null
@@ -1,22 +0,0 @@
-ruleWithConfiguration(ArgumentFuncCallToMethodCallRector::class, [
- new ArgumentFuncCallToMethodCall('auth', 'Illuminate\Contracts\Auth\Guard'),
- new ArgumentFuncCallToMethodCall('view', 'Illuminate\Contracts\View\Factory', 'make'),
- new ArgumentFuncCallToMethodCall('route', 'Illuminate\Routing\UrlGenerator', 'route'),
- new ArgumentFuncCallToMethodCall('back', 'Illuminate\Routing\Redirector', 'back', 'back'),
- new ArgumentFuncCallToMethodCall('broadcast', 'Illuminate\Contracts\Broadcasting\Factory', 'event'),
-
- new ArrayFuncCallToMethodCall('config', 'Illuminate\Contracts\Config\Repository', 'set', 'get'),
- new ArrayFuncCallToMethodCall('session', 'Illuminate\Session\SessionManager', 'put', 'get'),
- ]);
-};
diff --git a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/DispatchNonShouldQueueToDispatchSyncRectorTest.php b/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/DispatchNonShouldQueueToDispatchSyncRectorTest.php
deleted file mode 100644
index 49603f84..00000000
--- a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/DispatchNonShouldQueueToDispatchSyncRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/applies_to_bus_facade.php.inc b/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/applies_to_bus_facade.php.inc
deleted file mode 100644
index e82936d4..00000000
--- a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/applies_to_bus_facade.php.inc
+++ /dev/null
@@ -1,19 +0,0 @@
-
------
-
diff --git a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/applies_to_class_call_on_dispatchable.php.inc b/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/applies_to_class_call_on_dispatchable.php.inc
deleted file mode 100644
index 8e2ecade..00000000
--- a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/applies_to_class_call_on_dispatchable.php.inc
+++ /dev/null
@@ -1,21 +0,0 @@
-dispatch(new SomeJob());
-
-?>
------
-dispatchSync(new SomeJob());
-
-?>
diff --git a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/applies_to_dispatch_contract_variable.php.inc b/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/applies_to_dispatch_contract_variable.php.inc
deleted file mode 100644
index e3c0a8b0..00000000
--- a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/applies_to_dispatch_contract_variable.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-dispatch(new SomeJob());
- }
-}
-
-?>
------
-dispatchSync(new SomeJob());
- }
-}
-
-?>
diff --git a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/fixture.php.inc b/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/fixture.php.inc
deleted file mode 100644
index b4ed6cf7..00000000
--- a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,25 +0,0 @@
-
------
-
diff --git a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/skip_alias_with_should_queue_implementing_jobs.php.inc b/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/skip_alias_with_should_queue_implementing_jobs.php.inc
deleted file mode 100644
index 1ee2a0ba..00000000
--- a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/skip_alias_with_should_queue_implementing_jobs.php.inc
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/skip_calls_on_non_dispatchable_class.php.inc b/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/skip_calls_on_non_dispatchable_class.php.inc
deleted file mode 100644
index 7c70915b..00000000
--- a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/skip_calls_on_non_dispatchable_class.php.inc
+++ /dev/null
@@ -1,9 +0,0 @@
-dispatch(new SomeJob());
-
-?>
diff --git a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/skip_static_calls_on_non_bus_facade_class.php.inc b/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/skip_static_calls_on_non_bus_facade_class.php.inc
deleted file mode 100644
index a0e571bd..00000000
--- a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/skip_static_calls_on_non_bus_facade_class.php.inc
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/skip_with_closures.php.inc b/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/skip_with_closures.php.inc
deleted file mode 100644
index 0b043b24..00000000
--- a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/skip_with_closures.php.inc
+++ /dev/null
@@ -1,49 +0,0 @@
- 'please queue me!';
-
-dispatch($closure);
-dispatch($closureArrow);
-dispatch(fn () => 'please queue me!');
-dispatch(function () {
- return 'please queue me!';
-});
-
-\Illuminate\Support\Facades\Bus::dispatch($closure);
-\Illuminate\Support\Facades\Bus::dispatch($closureArrow);
-\Illuminate\Support\Facades\Bus::dispatch(fn () => 'please queue me!');
-\Illuminate\Support\Facades\Bus::dispatch(function () {
- return 'please queue me!';
-});
-
-?>
------
- 'please queue me!';
-
-dispatch($closure);
-dispatch($closureArrow);
-dispatch(fn () => 'please queue me!');
-dispatch(function () {
- return 'please queue me!';
-});
-
-\Illuminate\Support\Facades\Bus::dispatchSync($closure);
-\Illuminate\Support\Facades\Bus::dispatchSync($closureArrow);
-\Illuminate\Support\Facades\Bus::dispatchSync(fn () => 'please queue me!');
-\Illuminate\Support\Facades\Bus::dispatchSync(function () {
- return 'please queue me!';
-});
-
-?>
\ No newline at end of file
diff --git a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/skip_with_should_queue_implementing_jobs.php.inc b/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/skip_with_should_queue_implementing_jobs.php.inc
deleted file mode 100644
index 157668df..00000000
--- a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Fixture/skip_with_should_queue_implementing_jobs.php.inc
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Source/ClassWithDispatchableTrait.php b/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Source/ClassWithDispatchableTrait.php
deleted file mode 100644
index 41fc8c55..00000000
--- a/tests/Rector/FuncCall/DispatchNonShouldQueueToDispatchSyncRector/Source/ClassWithDispatchableTrait.php
+++ /dev/null
@@ -1,11 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(DispatchNonShouldQueueToDispatchSyncRector::class);
-};
diff --git a/tests/Rector/FuncCall/FactoryFuncCallToStaticCallRector/FactoryFuncCallToStaticCallRectorTest.php b/tests/Rector/FuncCall/FactoryFuncCallToStaticCallRector/FactoryFuncCallToStaticCallRectorTest.php
deleted file mode 100644
index 3f0d070f..00000000
--- a/tests/Rector/FuncCall/FactoryFuncCallToStaticCallRector/FactoryFuncCallToStaticCallRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/FuncCall/FactoryFuncCallToStaticCallRector/Fixture/fixture.php.inc b/tests/Rector/FuncCall/FactoryFuncCallToStaticCallRector/Fixture/fixture.php.inc
deleted file mode 100644
index 51133d7d..00000000
--- a/tests/Rector/FuncCall/FactoryFuncCallToStaticCallRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-
------
-
diff --git a/tests/Rector/FuncCall/FactoryFuncCallToStaticCallRector/config/configured_rule.php b/tests/Rector/FuncCall/FactoryFuncCallToStaticCallRector/config/configured_rule.php
deleted file mode 100644
index 361b02b5..00000000
--- a/tests/Rector/FuncCall/FactoryFuncCallToStaticCallRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(FactoryFuncCallToStaticCallRector::class);
-};
diff --git a/tests/Rector/FuncCall/HelperFuncCallToFacadeClassRector/Fixture/fixture.php.inc b/tests/Rector/FuncCall/HelperFuncCallToFacadeClassRector/Fixture/fixture.php.inc
deleted file mode 100644
index ed5bf67a..00000000
--- a/tests/Rector/FuncCall/HelperFuncCallToFacadeClassRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-trans('value');
- }
-}
-
-?>
------
-trans('value');
- }
-}
-
-?>
diff --git a/tests/Rector/FuncCall/HelperFuncCallToFacadeClassRector/Fixture/skip_with_args.php.inc b/tests/Rector/FuncCall/HelperFuncCallToFacadeClassRector/Fixture/skip_with_args.php.inc
deleted file mode 100644
index ac866df5..00000000
--- a/tests/Rector/FuncCall/HelperFuncCallToFacadeClassRector/Fixture/skip_with_args.php.inc
+++ /dev/null
@@ -1,11 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/FuncCall/HelperFuncCallToFacadeClassRector/config/configured_rule.php b/tests/Rector/FuncCall/HelperFuncCallToFacadeClassRector/config/configured_rule.php
deleted file mode 100644
index e60b8ba0..00000000
--- a/tests/Rector/FuncCall/HelperFuncCallToFacadeClassRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(HelperFuncCallToFacadeClassRector::class);
-};
diff --git a/tests/Rector/FuncCall/NotFilledBlankFuncCallToBlankFilledFuncCallRector/Fixture/fixture.php.inc b/tests/Rector/FuncCall/NotFilledBlankFuncCallToBlankFilledFuncCallRector/Fixture/fixture.php.inc
deleted file mode 100644
index 8b04d41c..00000000
--- a/tests/Rector/FuncCall/NotFilledBlankFuncCallToBlankFilledFuncCallRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,29 +0,0 @@
-
------
-
diff --git a/tests/Rector/FuncCall/NotFilledBlankFuncCallToBlankFilledFuncCallRector/NotFilledBlankFuncCallToBlankFilledFuncCallRectorTest.php b/tests/Rector/FuncCall/NotFilledBlankFuncCallToBlankFilledFuncCallRector/NotFilledBlankFuncCallToBlankFilledFuncCallRectorTest.php
deleted file mode 100644
index 7b65deff..00000000
--- a/tests/Rector/FuncCall/NotFilledBlankFuncCallToBlankFilledFuncCallRector/NotFilledBlankFuncCallToBlankFilledFuncCallRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/FuncCall/NotFilledBlankFuncCallToBlankFilledFuncCallRector/config/configured_rule.php b/tests/Rector/FuncCall/NotFilledBlankFuncCallToBlankFilledFuncCallRector/config/configured_rule.php
deleted file mode 100644
index ea0681bd..00000000
--- a/tests/Rector/FuncCall/NotFilledBlankFuncCallToBlankFilledFuncCallRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(NotFilledBlankFuncCallToBlankFilledFuncCallRector::class);
-};
diff --git a/tests/Rector/FuncCall/NowFuncWithStartOfDayMethodCallToTodayFuncRector/Fixture/fixture.php.inc b/tests/Rector/FuncCall/NowFuncWithStartOfDayMethodCallToTodayFuncRector/Fixture/fixture.php.inc
deleted file mode 100644
index 78cc125f..00000000
--- a/tests/Rector/FuncCall/NowFuncWithStartOfDayMethodCallToTodayFuncRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,29 +0,0 @@
-startOfDay();
- $tomorrow = now()->startOfDay()->addDay();
- }
-}
-
-?>
------
-addDay();
- }
-}
-
-?>
diff --git a/tests/Rector/FuncCall/NowFuncWithStartOfDayMethodCallToTodayFuncRector/Fixture/skip_now_with_other_calls.php.inc b/tests/Rector/FuncCall/NowFuncWithStartOfDayMethodCallToTodayFuncRector/Fixture/skip_now_with_other_calls.php.inc
deleted file mode 100644
index 9d4fd1b9..00000000
--- a/tests/Rector/FuncCall/NowFuncWithStartOfDayMethodCallToTodayFuncRector/Fixture/skip_now_with_other_calls.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-addDay()->startOfDay();
- }
-}
-
-?>
------
-addDay()->startOfDay();
- }
-}
-
-?>
diff --git a/tests/Rector/FuncCall/NowFuncWithStartOfDayMethodCallToTodayFuncRector/NowFuncWithStartOfDayMethodCallToTodayFuncRectorTest.php b/tests/Rector/FuncCall/NowFuncWithStartOfDayMethodCallToTodayFuncRector/NowFuncWithStartOfDayMethodCallToTodayFuncRectorTest.php
deleted file mode 100644
index b7d0e8f7..00000000
--- a/tests/Rector/FuncCall/NowFuncWithStartOfDayMethodCallToTodayFuncRector/NowFuncWithStartOfDayMethodCallToTodayFuncRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/FuncCall/NowFuncWithStartOfDayMethodCallToTodayFuncRector/config/configured_rule.php b/tests/Rector/FuncCall/NowFuncWithStartOfDayMethodCallToTodayFuncRector/config/configured_rule.php
deleted file mode 100644
index f0704817..00000000
--- a/tests/Rector/FuncCall/NowFuncWithStartOfDayMethodCallToTodayFuncRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(NowFuncWithStartOfDayMethodCallToTodayFuncRector::class);
-};
diff --git a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/fixture.php.inc b/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/fixture.php.inc
deleted file mode 100644
index 22dbe30b..00000000
--- a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,39 +0,0 @@
-
------
-
diff --git a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/skip_as_if_condition.php.inc b/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/skip_as_if_condition.php.inc
deleted file mode 100644
index 1526b724..00000000
--- a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/skip_as_if_condition.php.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-
diff --git a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/skip_with_object_call.php.inc b/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/skip_with_object_call.php.inc
deleted file mode 100644
index cd5490b8..00000000
--- a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/skip_with_object_call.php.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-dd();
-
- return true;
- }
-}
-
-?>
diff --git a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/skip_with_relevant_name.php.inc b/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/skip_with_relevant_name.php.inc
deleted file mode 100644
index 9762d81b..00000000
--- a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/skip_with_relevant_name.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/RemoveDumpDataDeadCodeRectorTest.php b/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/RemoveDumpDataDeadCodeRectorTest.php
deleted file mode 100644
index bb03daa6..00000000
--- a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/RemoveDumpDataDeadCodeRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/config/configured_rule.php b/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/config/configured_rule.php
deleted file mode 100644
index 444b262c..00000000
--- a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(RemoveDumpDataDeadCodeRector::class);
-};
diff --git a/tests/Rector/FuncCall/RemoveRedundantValueCallsRector/Fixture/fixture.php.inc b/tests/Rector/FuncCall/RemoveRedundantValueCallsRector/Fixture/fixture.php.inc
deleted file mode 100644
index 5de84ae3..00000000
--- a/tests/Rector/FuncCall/RemoveRedundantValueCallsRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,35 +0,0 @@
-store();
-
-$foo = value(new HelperObject());
-
-$user = 'a';
-
-value($user)->store();
-
-$foo = value($user);
-
-?>
------
-store();
-
-$foo = new HelperObject();
-
-$user = 'a';
-
-$user->store();
-
-$foo = $user;
-
-?>
diff --git a/tests/Rector/FuncCall/RemoveRedundantValueCallsRector/Fixture/skips_object_without_an_obvious_type.php.inc b/tests/Rector/FuncCall/RemoveRedundantValueCallsRector/Fixture/skips_object_without_an_obvious_type.php.inc
deleted file mode 100644
index 82591b85..00000000
--- a/tests/Rector/FuncCall/RemoveRedundantValueCallsRector/Fixture/skips_object_without_an_obvious_type.php.inc
+++ /dev/null
@@ -1,11 +0,0 @@
-store();
-
-$foo = value(new UndefinedClass());
-
-$user = new UndefinedClass();
-
-value($user)->store();
diff --git a/tests/Rector/FuncCall/RemoveRedundantValueCallsRector/RemoveRedundantValueCallsRectorTest.php b/tests/Rector/FuncCall/RemoveRedundantValueCallsRector/RemoveRedundantValueCallsRectorTest.php
deleted file mode 100644
index cd4a4651..00000000
--- a/tests/Rector/FuncCall/RemoveRedundantValueCallsRector/RemoveRedundantValueCallsRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/FuncCall/RemoveRedundantValueCallsRector/Source/HelperObject.php b/tests/Rector/FuncCall/RemoveRedundantValueCallsRector/Source/HelperObject.php
deleted file mode 100644
index 4a024c74..00000000
--- a/tests/Rector/FuncCall/RemoveRedundantValueCallsRector/Source/HelperObject.php
+++ /dev/null
@@ -1,10 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(RemoveRedundantValueCallsRector::class);
-};
diff --git a/tests/Rector/FuncCall/RemoveRedundantWithCallsRector/Fixture/fixture.php.inc b/tests/Rector/FuncCall/RemoveRedundantWithCallsRector/Fixture/fixture.php.inc
deleted file mode 100644
index 85adc52e..00000000
--- a/tests/Rector/FuncCall/RemoveRedundantWithCallsRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,35 +0,0 @@
-store();
-
-$foo = with(new HelperObject());
-
-$user = 'a';
-
-with($user)->store();
-
-$foo = with($user);
-
-?>
------
-store();
-
-$foo = new HelperObject();
-
-$user = 'a';
-
-$user->store();
-
-$foo = $user;
-
-?>
diff --git a/tests/Rector/FuncCall/RemoveRedundantWithCallsRector/Fixture/skips_calls_with_callables_as_a_second_arg.php.inc b/tests/Rector/FuncCall/RemoveRedundantWithCallsRector/Fixture/skips_calls_with_callables_as_a_second_arg.php.inc
deleted file mode 100644
index f9669e98..00000000
--- a/tests/Rector/FuncCall/RemoveRedundantWithCallsRector/Fixture/skips_calls_with_callables_as_a_second_arg.php.inc
+++ /dev/null
@@ -1,9 +0,0 @@
-store();
diff --git a/tests/Rector/FuncCall/RemoveRedundantWithCallsRector/Fixture/skips_object_without_an_obvious_type.php.inc b/tests/Rector/FuncCall/RemoveRedundantWithCallsRector/Fixture/skips_object_without_an_obvious_type.php.inc
deleted file mode 100644
index 02d68a1f..00000000
--- a/tests/Rector/FuncCall/RemoveRedundantWithCallsRector/Fixture/skips_object_without_an_obvious_type.php.inc
+++ /dev/null
@@ -1,12 +0,0 @@
-store();
-
-$foo = with(new UndefinedClass(), new AnotherUndefinedType());
-
-$user = new UndefinedClass();
-$bar = new AnotherUndefinedType();
-
-with($user, $bar)->store();
diff --git a/tests/Rector/FuncCall/RemoveRedundantWithCallsRector/RemoveRedundantWithCallsRectorTest.php b/tests/Rector/FuncCall/RemoveRedundantWithCallsRector/RemoveRedundantWithCallsRectorTest.php
deleted file mode 100644
index ae184dcb..00000000
--- a/tests/Rector/FuncCall/RemoveRedundantWithCallsRector/RemoveRedundantWithCallsRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/FuncCall/RemoveRedundantWithCallsRector/Source/HelperObject.php b/tests/Rector/FuncCall/RemoveRedundantWithCallsRector/Source/HelperObject.php
deleted file mode 100644
index 7f121aed..00000000
--- a/tests/Rector/FuncCall/RemoveRedundantWithCallsRector/Source/HelperObject.php
+++ /dev/null
@@ -1,10 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(RemoveRedundantWithCallsRector::class);
-};
diff --git a/tests/Rector/FuncCall/SleepFuncToSleepStaticCallRector/Fixture/fixture.php.inc b/tests/Rector/FuncCall/SleepFuncToSleepStaticCallRector/Fixture/fixture.php.inc
deleted file mode 100644
index 3e6680df..00000000
--- a/tests/Rector/FuncCall/SleepFuncToSleepStaticCallRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-
------
-
diff --git a/tests/Rector/FuncCall/SleepFuncToSleepStaticCallRector/Fixture/skip_as_using_return.php.inc b/tests/Rector/FuncCall/SleepFuncToSleepStaticCallRector/Fixture/skip_as_using_return.php.inc
deleted file mode 100644
index 300c5cd3..00000000
--- a/tests/Rector/FuncCall/SleepFuncToSleepStaticCallRector/Fixture/skip_as_using_return.php.inc
+++ /dev/null
@@ -1,21 +0,0 @@
-
diff --git a/tests/Rector/FuncCall/SleepFuncToSleepStaticCallRector/SleepFuncToSleepStaticCallRectorTest.php b/tests/Rector/FuncCall/SleepFuncToSleepStaticCallRector/SleepFuncToSleepStaticCallRectorTest.php
deleted file mode 100644
index 232a8bd1..00000000
--- a/tests/Rector/FuncCall/SleepFuncToSleepStaticCallRector/SleepFuncToSleepStaticCallRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/FuncCall/SleepFuncToSleepStaticCallRector/config/configured_rule.php b/tests/Rector/FuncCall/SleepFuncToSleepStaticCallRector/config/configured_rule.php
deleted file mode 100644
index 11ed7060..00000000
--- a/tests/Rector/FuncCall/SleepFuncToSleepStaticCallRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(SleepFuncToSleepStaticCallRector::class);
-};
diff --git a/tests/Rector/FuncCall/ThrowIfAndThrowUnlessExceptionsToUseClassStringRector/Fixture/fixture.php.inc b/tests/Rector/FuncCall/ThrowIfAndThrowUnlessExceptionsToUseClassStringRector/Fixture/fixture.php.inc
deleted file mode 100644
index 0b9b3f96..00000000
--- a/tests/Rector/FuncCall/ThrowIfAndThrowUnlessExceptionsToUseClassStringRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-
------
-
diff --git a/tests/Rector/FuncCall/ThrowIfAndThrowUnlessExceptionsToUseClassStringRector/Fixture/skip_where_already_using_class_string.php.inc b/tests/Rector/FuncCall/ThrowIfAndThrowUnlessExceptionsToUseClassStringRector/Fixture/skip_where_already_using_class_string.php.inc
deleted file mode 100644
index 30a1cc9f..00000000
--- a/tests/Rector/FuncCall/ThrowIfAndThrowUnlessExceptionsToUseClassStringRector/Fixture/skip_where_already_using_class_string.php.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/tests/Rector/FuncCall/ThrowIfAndThrowUnlessExceptionsToUseClassStringRector/ThrowIfAndThrowUnlessExceptionsToUseClassStringRectorTest.php b/tests/Rector/FuncCall/ThrowIfAndThrowUnlessExceptionsToUseClassStringRector/ThrowIfAndThrowUnlessExceptionsToUseClassStringRectorTest.php
deleted file mode 100644
index c95f6516..00000000
--- a/tests/Rector/FuncCall/ThrowIfAndThrowUnlessExceptionsToUseClassStringRector/ThrowIfAndThrowUnlessExceptionsToUseClassStringRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/FuncCall/ThrowIfAndThrowUnlessExceptionsToUseClassStringRector/config/configured_rule.php b/tests/Rector/FuncCall/ThrowIfAndThrowUnlessExceptionsToUseClassStringRector/config/configured_rule.php
deleted file mode 100644
index 7725edbf..00000000
--- a/tests/Rector/FuncCall/ThrowIfAndThrowUnlessExceptionsToUseClassStringRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(ThrowIfAndThrowUnlessExceptionsToUseClassStringRector::class);
-};
diff --git a/tests/Rector/FuncCall/TypeHintTappableCallRector/Fixture/fixture.php.inc b/tests/Rector/FuncCall/TypeHintTappableCallRector/Fixture/fixture.php.inc
deleted file mode 100644
index 5f7f634e..00000000
--- a/tests/Rector/FuncCall/TypeHintTappableCallRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-tap(function ($example) {
-
-});
-
-?>
------
-tap(function (\RectorLaravel\Tests\Rector\FuncCall\TypeHintTappableCallRector\Source\TappableExample $example) {
-
-});
-
-?>
diff --git a/tests/Rector/FuncCall/TypeHintTappableCallRector/Fixture/skip_missing_args.php.inc b/tests/Rector/FuncCall/TypeHintTappableCallRector/Fixture/skip_missing_args.php.inc
deleted file mode 100644
index e23bdf9f..00000000
--- a/tests/Rector/FuncCall/TypeHintTappableCallRector/Fixture/skip_missing_args.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-tap();
-
-?>
diff --git a/tests/Rector/FuncCall/TypeHintTappableCallRector/Fixture/skip_missing_closure_parameter.php.inc b/tests/Rector/FuncCall/TypeHintTappableCallRector/Fixture/skip_missing_closure_parameter.php.inc
deleted file mode 100644
index 15c180c6..00000000
--- a/tests/Rector/FuncCall/TypeHintTappableCallRector/Fixture/skip_missing_closure_parameter.php.inc
+++ /dev/null
@@ -1,15 +0,0 @@
-tap(function () {
-
-});
-
-?>
diff --git a/tests/Rector/FuncCall/TypeHintTappableCallRector/Fixture/skip_non_tap_calls.php.inc b/tests/Rector/FuncCall/TypeHintTappableCallRector/Fixture/skip_non_tap_calls.php.inc
deleted file mode 100644
index 00df2fb6..00000000
--- a/tests/Rector/FuncCall/TypeHintTappableCallRector/Fixture/skip_non_tap_calls.php.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/tests/Rector/FuncCall/TypeHintTappableCallRector/Fixture/skip_non_tappable_object.php.inc b/tests/Rector/FuncCall/TypeHintTappableCallRector/Fixture/skip_non_tappable_object.php.inc
deleted file mode 100644
index 58b21b9f..00000000
--- a/tests/Rector/FuncCall/TypeHintTappableCallRector/Fixture/skip_non_tappable_object.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-tap(function ($example) {
-
-});
-
-?>
diff --git a/tests/Rector/FuncCall/TypeHintTappableCallRector/Source/NonTappableExample.php b/tests/Rector/FuncCall/TypeHintTappableCallRector/Source/NonTappableExample.php
deleted file mode 100644
index 94860e79..00000000
--- a/tests/Rector/FuncCall/TypeHintTappableCallRector/Source/NonTappableExample.php
+++ /dev/null
@@ -1,7 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/FuncCall/TypeHintTappableCallRector/config/configured_rule.php b/tests/Rector/FuncCall/TypeHintTappableCallRector/config/configured_rule.php
deleted file mode 100644
index 99084998..00000000
--- a/tests/Rector/FuncCall/TypeHintTappableCallRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(TypeHintTappableCallRector::class);
-};
diff --git a/tests/Rector/If_/AbortIfRector/AbortIfRectorTest.php b/tests/Rector/If_/AbortIfRector/AbortIfRectorTest.php
deleted file mode 100644
index f42c8450..00000000
--- a/tests/Rector/If_/AbortIfRector/AbortIfRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/If_/AbortIfRector/Fixture/fixture.php.inc b/tests/Rector/If_/AbortIfRector/Fixture/fixture.php.inc
deleted file mode 100644
index 260ae37f..00000000
--- a/tests/Rector/If_/AbortIfRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,41 +0,0 @@
-
------
-
diff --git a/tests/Rector/If_/AbortIfRector/Fixture/skip_if_more_statements.php.inc b/tests/Rector/If_/AbortIfRector/Fixture/skip_if_more_statements.php.inc
deleted file mode 100644
index 3c130b31..00000000
--- a/tests/Rector/If_/AbortIfRector/Fixture/skip_if_more_statements.php.inc
+++ /dev/null
@@ -1,22 +0,0 @@
-
diff --git a/tests/Rector/If_/AbortIfRector/Fixture/skip_where_condition_contains_assigns_var_for_exception.php.inc b/tests/Rector/If_/AbortIfRector/Fixture/skip_where_condition_contains_assigns_var_for_exception.php.inc
deleted file mode 100644
index 9636cff4..00000000
--- a/tests/Rector/If_/AbortIfRector/Fixture/skip_where_condition_contains_assigns_var_for_exception.php.inc
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/tests/Rector/If_/AbortIfRector/config/configured_rule.php b/tests/Rector/If_/AbortIfRector/config/configured_rule.php
deleted file mode 100644
index c5d6eafd..00000000
--- a/tests/Rector/If_/AbortIfRector/config/configured_rule.php
+++ /dev/null
@@ -1,11 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(AbortIfRector::class);
-};
diff --git a/tests/Rector/If_/ReportIfRector/Fixture/fixture.php.inc b/tests/Rector/If_/ReportIfRector/Fixture/fixture.php.inc
deleted file mode 100644
index faa45c40..00000000
--- a/tests/Rector/If_/ReportIfRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,41 +0,0 @@
-
------
-
diff --git a/tests/Rector/If_/ReportIfRector/Fixture/skip_if_more_statements.php.inc b/tests/Rector/If_/ReportIfRector/Fixture/skip_if_more_statements.php.inc
deleted file mode 100644
index 312a8ddc..00000000
--- a/tests/Rector/If_/ReportIfRector/Fixture/skip_if_more_statements.php.inc
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/tests/Rector/If_/ReportIfRector/Fixture/skip_where_condition_contains_assigns_var_for_exception.php.inc b/tests/Rector/If_/ReportIfRector/Fixture/skip_where_condition_contains_assigns_var_for_exception.php.inc
deleted file mode 100644
index 75b2cdd2..00000000
--- a/tests/Rector/If_/ReportIfRector/Fixture/skip_where_condition_contains_assigns_var_for_exception.php.inc
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/tests/Rector/If_/ReportIfRector/ReportIfRectorTest.php b/tests/Rector/If_/ReportIfRector/ReportIfRectorTest.php
deleted file mode 100644
index 5a112f72..00000000
--- a/tests/Rector/If_/ReportIfRector/ReportIfRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/If_/ReportIfRector/config/configured_rule.php b/tests/Rector/If_/ReportIfRector/config/configured_rule.php
deleted file mode 100644
index 053a6894..00000000
--- a/tests/Rector/If_/ReportIfRector/config/configured_rule.php
+++ /dev/null
@@ -1,11 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(ReportIfRector::class);
-};
diff --git a/tests/Rector/If_/ThrowIfRector/Fixture/fixture.php.inc b/tests/Rector/If_/ThrowIfRector/Fixture/fixture.php.inc
deleted file mode 100644
index 391c8111..00000000
--- a/tests/Rector/If_/ThrowIfRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,41 +0,0 @@
-
------
-
diff --git a/tests/Rector/If_/ThrowIfRector/Fixture/skip_if_more_statements.php.inc b/tests/Rector/If_/ThrowIfRector/Fixture/skip_if_more_statements.php.inc
deleted file mode 100644
index 66e3a399..00000000
--- a/tests/Rector/If_/ThrowIfRector/Fixture/skip_if_more_statements.php.inc
+++ /dev/null
@@ -1,22 +0,0 @@
-
diff --git a/tests/Rector/If_/ThrowIfRector/Fixture/skip_where_condition_contains_assigns_var_for_exception.php.inc b/tests/Rector/If_/ThrowIfRector/Fixture/skip_where_condition_contains_assigns_var_for_exception.php.inc
deleted file mode 100644
index d9e117b7..00000000
--- a/tests/Rector/If_/ThrowIfRector/Fixture/skip_where_condition_contains_assigns_var_for_exception.php.inc
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/tests/Rector/If_/ThrowIfRector/ThrowIfRectorTest.php b/tests/Rector/If_/ThrowIfRector/ThrowIfRectorTest.php
deleted file mode 100644
index 13ed5a3b..00000000
--- a/tests/Rector/If_/ThrowIfRector/ThrowIfRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/If_/ThrowIfRector/config/configured_rule.php b/tests/Rector/If_/ThrowIfRector/config/configured_rule.php
deleted file mode 100644
index 9af9c6a8..00000000
--- a/tests/Rector/If_/ThrowIfRector/config/configured_rule.php
+++ /dev/null
@@ -1,11 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(ThrowIfRector::class);
-};
diff --git a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/AssertStatusToAssertMethodTest.php b/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/AssertStatusToAssertMethodTest.php
deleted file mode 100644
index 9f4dbd7b..00000000
--- a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/AssertStatusToAssertMethodTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/fixture_with_illuminate_response_constants.php.inc b/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/fixture_with_illuminate_response_constants.php.inc
deleted file mode 100644
index 7990c82e..00000000
--- a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/fixture_with_illuminate_response_constants.php.inc
+++ /dev/null
@@ -1,117 +0,0 @@
-assertStatus(\Symfony\Component\HttpFoundation\Response::HTTP_OK);
- }
-
- public function testNoContent(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(\Symfony\Component\HttpFoundation\Response::HTTP_NO_CONTENT);
- }
-
- public function testForbidden(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(\Symfony\Component\HttpFoundation\Response::HTTP_FORBIDDEN);
- }
-
- public function testNotFound(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(\Symfony\Component\HttpFoundation\Response::HTTP_NOT_FOUND);
- }
-
- public function testMethodNotAllowed(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(\Symfony\Component\HttpFoundation\Response::HTTP_METHOD_NOT_ALLOWED);
- }
-
- public function testUnauthorized(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(\Symfony\Component\HttpFoundation\Response::HTTP_UNAUTHORIZED);
- }
-
- public function testUnprocessableEntity(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(\Symfony\Component\HttpFoundation\Response::HTTP_UNPROCESSABLE_ENTITY);
- }
-
- public function testGone(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(\Symfony\Component\HttpFoundation\Response::HTTP_GONE);
- }
-
- public function testInternalServerError(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(\Symfony\Component\HttpFoundation\Response::HTTP_INTERNAL_SERVER_ERROR);
- }
-
- public function testServiceUnavailable(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(\Symfony\Component\HttpFoundation\Response::HTTP_SERVICE_UNAVAILABLE);
- }
-}
-
-?>
------
-assertOk();
- }
-
- public function testNoContent(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertNoContent();
- }
-
- public function testForbidden(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertForbidden();
- }
-
- public function testNotFound(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertNotFound();
- }
-
- public function testMethodNotAllowed(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertMethodNotAllowed();
- }
-
- public function testUnauthorized(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertUnauthorized();
- }
-
- public function testUnprocessableEntity(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertUnprocessable();
- }
-
- public function testGone(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertGone();
- }
-
- public function testInternalServerError(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertInternalServerError();
- }
-
- public function testServiceUnavailable(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertServiceUnavailable();
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/fixture_with_magic_numbers.php.inc b/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/fixture_with_magic_numbers.php.inc
deleted file mode 100644
index 4cf7db20..00000000
--- a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/fixture_with_magic_numbers.php.inc
+++ /dev/null
@@ -1,117 +0,0 @@
-assertStatus(200);
- }
-
- public function testNoContent(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(204);
- }
-
- public function testForbidden(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(403);
- }
-
- public function testNotFound(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(404);
- }
-
- public function testMethodNotAllowed(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(405);
- }
-
- public function testUnauthorized(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(401);
- }
-
- public function testUnprocessableEntity(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(422);
- }
-
- public function testGone(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(410);
- }
-
- public function testInternalServerError(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(500);
- }
-
- public function testServiceUnavailable(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(503);
- }
-}
-
-?>
------
-assertOk();
- }
-
- public function testNoContent(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertNoContent();
- }
-
- public function testForbidden(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertForbidden();
- }
-
- public function testNotFound(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertNotFound();
- }
-
- public function testMethodNotAllowed(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertMethodNotAllowed();
- }
-
- public function testUnauthorized(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertUnauthorized();
- }
-
- public function testUnprocessableEntity(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertUnprocessable();
- }
-
- public function testGone(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertGone();
- }
-
- public function testInternalServerError(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertInternalServerError();
- }
-
- public function testServiceUnavailable(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertServiceUnavailable();
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/fixture_with_return_by_doctags.php.inc b/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/fixture_with_return_by_doctags.php.inc
deleted file mode 100644
index b59ced86..00000000
--- a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/fixture_with_return_by_doctags.php.inc
+++ /dev/null
@@ -1,49 +0,0 @@
-get('/')->assertStatus(\Symfony\Component\HttpFoundation\Response::HTTP_OK);
- }
-}
-
-class TestCase
-{
- /**
- * @return \Illuminate\Testing\TestResponse
- */
- public function get($path)
- {
-
- }
-}
-
-?>
------
-get('/')->assertOk();
- }
-}
-
-class TestCase
-{
- /**
- * @return \Illuminate\Testing\TestResponse
- */
- public function get($path)
- {
-
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/fixture_with_symfony_response_constants.php.inc b/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/fixture_with_symfony_response_constants.php.inc
deleted file mode 100644
index a386476e..00000000
--- a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/fixture_with_symfony_response_constants.php.inc
+++ /dev/null
@@ -1,87 +0,0 @@
-assertStatus(\Symfony\Component\HttpFoundation\Response::HTTP_OK);
- }
-
- public function testNoContent(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(\Symfony\Component\HttpFoundation\Response::HTTP_NO_CONTENT);
- }
-
- public function testForbidden(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(\Symfony\Component\HttpFoundation\Response::HTTP_FORBIDDEN);
- }
-
- public function testNotFound(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(\Symfony\Component\HttpFoundation\Response::HTTP_NOT_FOUND);
- }
-
- public function testMethodNotAllowed(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(\Symfony\Component\HttpFoundation\Response::HTTP_METHOD_NOT_ALLOWED);
- }
-
- public function testUnauthorized(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(\Symfony\Component\HttpFoundation\Response::HTTP_UNAUTHORIZED);
- }
-
- public function testUnprocessableEntity(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertStatus(\Symfony\Component\HttpFoundation\Response::HTTP_UNPROCESSABLE_ENTITY);
- }
-}
-
-?>
------
-assertOk();
- }
-
- public function testNoContent(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertNoContent();
- }
-
- public function testForbidden(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertForbidden();
- }
-
- public function testNotFound(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertNotFound();
- }
-
- public function testMethodNotAllowed(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertMethodNotAllowed();
- }
-
- public function testUnauthorized(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertUnauthorized();
- }
-
- public function testUnprocessableEntity(\Illuminate\Testing\TestResponse $response)
- {
- $response->assertUnprocessable();
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/skip_missing_non_response_constant.php.inc b/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/skip_missing_non_response_constant.php.inc
deleted file mode 100644
index 52d173b4..00000000
--- a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/skip_missing_non_response_constant.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-assertStatus(\Something\Response::HTTP_OK);
- }
-}
-
-?>
------
-assertStatus(\Something\Response::HTTP_OK);
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/skip_missing_status_code.php.inc b/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/skip_missing_status_code.php.inc
deleted file mode 100644
index ece003fd..00000000
--- a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/skip_missing_status_code.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-assertStatus();
- }
-}
-
-?>
------
-assertStatus();
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/skip_non_test_response_object.php.inc b/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/skip_non_test_response_object.php.inc
deleted file mode 100644
index b9da797b..00000000
--- a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/skip_non_test_response_object.php.inc
+++ /dev/null
@@ -1,77 +0,0 @@
-assertStatus(200);
- }
-
- public function testNoContent($response)
- {
- $response->assertStatus(204);
- }
-
- public function testForbidden($response)
- {
- $response->assertStatus(403);
- }
-
- public function testNotFound($response)
- {
- $response->assertStatus(404);
- }
-
- public function testUnauthorized($response)
- {
- $response->assertStatus(401);
- }
-
- public function testUnprocessableEntity($response)
- {
- $response->assertStatus(422);
- }
-}
-
-?>
------
-assertStatus(200);
- }
-
- public function testNoContent($response)
- {
- $response->assertStatus(204);
- }
-
- public function testForbidden($response)
- {
- $response->assertStatus(403);
- }
-
- public function testNotFound($response)
- {
- $response->assertStatus(404);
- }
-
- public function testUnauthorized($response)
- {
- $response->assertStatus(401);
- }
-
- public function testUnprocessableEntity($response)
- {
- $response->assertStatus(422);
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/skip_with_non_assertStatus_method.php.inc b/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/skip_with_non_assertStatus_method.php.inc
deleted file mode 100644
index 9d667b38..00000000
--- a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/skip_with_non_assertStatus_method.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-assertStatuses();
- }
-}
-
-?>
------
-assertStatuses();
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/skip_with_too_many_args.php.inc b/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/skip_with_too_many_args.php.inc
deleted file mode 100644
index 0fb6fb8f..00000000
--- a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/Fixture/skip_with_too_many_args.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-assertStatus(200, 'hello');
- }
-}
-
-?>
------
-assertStatus(200, 'hello');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/config/configured_rule.php b/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/config/configured_rule.php
deleted file mode 100644
index 56d05b42..00000000
--- a/tests/Rector/MethodCall/AssertStatusToAssertMethodRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(AssertStatusToAssertMethodRector::class);
-};
diff --git a/tests/Rector/MethodCall/AvoidNegatedCollectionFilterOrRejectRector/AvoidNegatedCollectionFilterOrRejectRectorTest.php b/tests/Rector/MethodCall/AvoidNegatedCollectionFilterOrRejectRector/AvoidNegatedCollectionFilterOrRejectRectorTest.php
deleted file mode 100644
index db0d7185..00000000
--- a/tests/Rector/MethodCall/AvoidNegatedCollectionFilterOrRejectRector/AvoidNegatedCollectionFilterOrRejectRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/AvoidNegatedCollectionFilterOrRejectRector/Fixture/fixture_cast.php.inc b/tests/Rector/MethodCall/AvoidNegatedCollectionFilterOrRejectRector/Fixture/fixture_cast.php.inc
deleted file mode 100644
index 309d1ea0..00000000
--- a/tests/Rector/MethodCall/AvoidNegatedCollectionFilterOrRejectRector/Fixture/fixture_cast.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-filter(fn (?int $number): bool => ! $number);
-
-(new Collection([0, 1, null, -1]))
- ->reject(fn (?int $number): bool => ! $number);
-
-?>
------
-reject(fn (?int $number): bool => (bool) $number);
-
-(new Collection([0, 1, null, -1]))
- ->filter(fn (?int $number): bool => (bool) $number);
-
-?>
diff --git a/tests/Rector/MethodCall/AvoidNegatedCollectionFilterOrRejectRector/Fixture/fixture_return_type.php.inc b/tests/Rector/MethodCall/AvoidNegatedCollectionFilterOrRejectRector/Fixture/fixture_return_type.php.inc
deleted file mode 100644
index 6f3ee24e..00000000
--- a/tests/Rector/MethodCall/AvoidNegatedCollectionFilterOrRejectRector/Fixture/fixture_return_type.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-filter(fn (?int $number) => ! is_null($number));
-
-(new Collection([0, 1, null, -1]))
- ->reject(fn (?int $number) => ! is_null($number));
-
-?>
------
-reject(fn (?int $number): bool => is_null($number));
-
-(new Collection([0, 1, null, -1]))
- ->filter(fn (?int $number): bool => is_null($number));
-
-?>
diff --git a/tests/Rector/MethodCall/AvoidNegatedCollectionFilterOrRejectRector/Fixture/fixture_simple_negation.php.inc b/tests/Rector/MethodCall/AvoidNegatedCollectionFilterOrRejectRector/Fixture/fixture_simple_negation.php.inc
deleted file mode 100644
index efea1c86..00000000
--- a/tests/Rector/MethodCall/AvoidNegatedCollectionFilterOrRejectRector/Fixture/fixture_simple_negation.php.inc
+++ /dev/null
@@ -1,35 +0,0 @@
-filter(fn (?int $number): bool => ! is_null($number))
- ->reject(fn (int $number): bool => ! ($number > 0));
-
-(new Collection([0, 1, null, -1]))
- ->filter(fn (?int $number): bool => ! ($number > 0));
-
-(new Collection([0, 1, null, -1]))
- ->reject(fn (?int $number): bool => ! ($number > 0));
-
-?>
------
-reject(fn (?int $number): bool => is_null($number))
- ->filter(fn (int $number): bool => $number > 0);
-
-(new Collection([0, 1, null, -1]))
- ->reject(fn (?int $number): bool => $number > 0);
-
-(new Collection([0, 1, null, -1]))
- ->filter(fn (?int $number): bool => $number > 0);
-
-?>
diff --git a/tests/Rector/MethodCall/AvoidNegatedCollectionFilterOrRejectRector/config/configured_rule.php b/tests/Rector/MethodCall/AvoidNegatedCollectionFilterOrRejectRector/config/configured_rule.php
deleted file mode 100644
index de648d42..00000000
--- a/tests/Rector/MethodCall/AvoidNegatedCollectionFilterOrRejectRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(AvoidNegatedCollectionFilterOrRejectRector::class);
-};
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/ChangeQueryWhereDateValueWithCarbonRectorTest.php b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/ChangeQueryWhereDateValueWithCarbonRectorTest.php
deleted file mode 100644
index a6aa5418..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/ChangeQueryWhereDateValueWithCarbonRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/bigger_than.php.inc b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/bigger_than.php.inc
deleted file mode 100644
index 4b28ea99..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/bigger_than.php.inc
+++ /dev/null
@@ -1,35 +0,0 @@
-whereDate('created_at', '>', Carbon::now());
- }
-}
-
-?>
------
-whereDate('created_at', '>=', $dateTime);
- $query->whereTime('created_at', '>=', $dateTime);
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/carbon_now_with_call.php.inc b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/carbon_now_with_call.php.inc
deleted file mode 100644
index 743c9448..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/carbon_now_with_call.php.inc
+++ /dev/null
@@ -1,35 +0,0 @@
-whereDate('created_at', '>', Carbon::now()->subDays(10000));
- }
-}
-
-?>
------
-subDays(10000);
- $query->whereDate('created_at', '>=', $dateTime);
- $query->whereTime('created_at', '>=', $dateTime);
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/date_time_only.php.inc b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/date_time_only.php.inc
deleted file mode 100644
index 89143b46..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/date_time_only.php.inc
+++ /dev/null
@@ -1,32 +0,0 @@
-whereDate('created_at', '>', $dateTime);
- }
-}
-
-?>
------
-whereDate('created_at', '>=', $dateTime);
- $query->whereTime('created_at', '>=', $dateTime);
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/fixture.php.inc b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/fixture.php.inc
deleted file mode 100644
index 9a7804f1..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,35 +0,0 @@
-whereDate('created_at', '<', Carbon::now());
- }
-}
-
-?>
------
-whereDate('created_at', '<=', $dateTime);
- $query->whereTime('created_at', '<=', $dateTime);
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/skip_already_equal.php.inc b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/skip_already_equal.php.inc
deleted file mode 100644
index 30a17e83..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/skip_already_equal.php.inc
+++ /dev/null
@@ -1,15 +0,0 @@
-whereDate('created_at', '<=', $dateTime);
- }
-}
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/skip_carbon_today.php.inc b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/skip_carbon_today.php.inc
deleted file mode 100644
index b10cbe15..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/skip_carbon_today.php.inc
+++ /dev/null
@@ -1,14 +0,0 @@
-whereDate('created_at', '>', Carbon::today());
- }
-}
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/skip_two_args_only.php.inc b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/skip_two_args_only.php.inc
deleted file mode 100644
index 32761ebf..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/skip_two_args_only.php.inc
+++ /dev/null
@@ -1,14 +0,0 @@
-whereDate('created_at', Carbon::now());
- }
-}
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/variable_date_time.php.inc b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/variable_date_time.php.inc
deleted file mode 100644
index 19754fb9..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/variable_date_time.php.inc
+++ /dev/null
@@ -1,36 +0,0 @@
-whereDate('created_at', '<', $dateTime);
- }
-}
-
-?>
------
-whereDate('created_at', '<=', $dateTime);
- $query->whereTime('created_at', '<=', $dateTime);
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/config/configured_rule.php b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/config/configured_rule.php
deleted file mode 100644
index a854d482..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(ChangeQueryWhereDateValueWithCarbonRector::class);
-};
diff --git a/tests/Rector/MethodCall/DatabaseExpressionToStringToMethodCallRector/DatabaseExpressionToStringToMethodCallRectorTest.php b/tests/Rector/MethodCall/DatabaseExpressionToStringToMethodCallRector/DatabaseExpressionToStringToMethodCallRectorTest.php
deleted file mode 100644
index 04e28e03..00000000
--- a/tests/Rector/MethodCall/DatabaseExpressionToStringToMethodCallRector/DatabaseExpressionToStringToMethodCallRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/DatabaseExpressionToStringToMethodCallRector/Fixture/fixture.php.inc b/tests/Rector/MethodCall/DatabaseExpressionToStringToMethodCallRector/Fixture/fixture.php.inc
deleted file mode 100644
index 70be4445..00000000
--- a/tests/Rector/MethodCall/DatabaseExpressionToStringToMethodCallRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,19 +0,0 @@
-__toString();
-
-?>
------
-getValue(\Illuminate\Support\Facades\DB::connection()->getQueryGrammar());
-
-?>
diff --git a/tests/Rector/MethodCall/DatabaseExpressionToStringToMethodCallRector/Fixture/skip_other_usages.php.inc b/tests/Rector/MethodCall/DatabaseExpressionToStringToMethodCallRector/Fixture/skip_other_usages.php.inc
deleted file mode 100644
index 811cbd07..00000000
--- a/tests/Rector/MethodCall/DatabaseExpressionToStringToMethodCallRector/Fixture/skip_other_usages.php.inc
+++ /dev/null
@@ -1,9 +0,0 @@
-where('name', DB::raw('select 1'))->get();
-
-?>
diff --git a/tests/Rector/MethodCall/DatabaseExpressionToStringToMethodCallRector/config/configured_rule.php b/tests/Rector/MethodCall/DatabaseExpressionToStringToMethodCallRector/config/configured_rule.php
deleted file mode 100644
index 081f2110..00000000
--- a/tests/Rector/MethodCall/DatabaseExpressionToStringToMethodCallRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(DatabaseExpressionToStringToMethodCallRector::class);
-};
diff --git a/tests/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector/EloquentOrderByToLatestOrOldestRectorTest.php b/tests/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector/EloquentOrderByToLatestOrOldestRectorTest.php
deleted file mode 100644
index f0866e2b..00000000
--- a/tests/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector/EloquentOrderByToLatestOrOldestRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector/Fixture/fixture.php.inc b/tests/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector/Fixture/fixture.php.inc
deleted file mode 100644
index ccf64f2d..00000000
--- a/tests/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,33 +0,0 @@
-orderBy('created_at');
-$query->orderBy('created_at', 'desc');
-$query->orderBy('submitted_at');
-$query->orderByDesc('submitted_at');
-$query->orderBy($allowed_variable_name);
-
-?>
------
-oldest();
-$query->latest();
-$query->oldest('submitted_at');
-$query->latest('submitted_at');
-$query->oldest($allowed_variable_name);
-
-?>
diff --git a/tests/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector/Fixture/skip_if_column_not_allowed.php.inc b/tests/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector/Fixture/skip_if_column_not_allowed.php.inc
deleted file mode 100644
index 315bf0dd..00000000
--- a/tests/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector/Fixture/skip_if_column_not_allowed.php.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-orderBy($unallowed_variable_name);
-$query->orderBy('unallowed_column_name');
-
-?>
\ No newline at end of file
diff --git a/tests/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector/Fixture/skip_if_not_eloquent_builder.php.inc b/tests/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector/Fixture/skip_if_not_eloquent_builder.php.inc
deleted file mode 100644
index 38525e69..00000000
--- a/tests/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector/Fixture/skip_if_not_eloquent_builder.php.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-orderBy('created_at');
-
-?>
diff --git a/tests/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector/Fixture/skip_if_not_enough_arguments.php.inc b/tests/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector/Fixture/skip_if_not_enough_arguments.php.inc
deleted file mode 100644
index 882588c0..00000000
--- a/tests/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector/Fixture/skip_if_not_enough_arguments.php.inc
+++ /dev/null
@@ -1,10 +0,0 @@
-orderBy();
-
-?>
diff --git a/tests/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector/config/configured_rule.php b/tests/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector/config/configured_rule.php
deleted file mode 100644
index c6acbd4d..00000000
--- a/tests/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector/config/configured_rule.php
+++ /dev/null
@@ -1,22 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->ruleWithConfiguration(
- EloquentOrderByToLatestOrOldestRector::class,
- [
- EloquentOrderByToLatestOrOldestRector::ALLOWED_PATTERNS => [
- 'created_at',
- 'submitted_a*',
- '*tested_at',
- '$allowed_variable_name',
- ],
- ],
- );
-};
diff --git a/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/EloquentWhereRelationTypeHintingParameterRectorTest.php b/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/EloquentWhereRelationTypeHintingParameterRectorTest.php
deleted file mode 100644
index bb305bac..00000000
--- a/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/EloquentWhereRelationTypeHintingParameterRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/Fixture/fixture.php.inc b/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/Fixture/fixture.php.inc
deleted file mode 100644
index bf809532..00000000
--- a/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,77 +0,0 @@
-whereHas('posts', function ($query) {
- $query->where('is_published', true);
-});
-
-$query->orWhereHas('posts', function ($query) {
- $query->where('is_published', true);
-});
-
-$query->whereDoesntHave('posts', function ($query) {
- $query->where('is_published', true);
-});
-
-$query->orWhereDoesntHave('posts', function ($query) {
- $query->where('is_published', true);
-});
-
-$query->whereHasMorph('posts', [], function ($query) {
- $query->where('is_published', true);
-});
-
-$query->orWhereHasMorph('posts', [], function ($query) {
- $query->where('is_published', true);
-});
-
-$query->whereDoesntHaveMorph('posts', [], function ($query) {
- $query->where('is_published', true);
-});
-
-$query->orWhereDoesntHaveMorph('posts', [], function ($query) {
- $query->where('is_published', true);
-});
-
-?>
------
-whereHas('posts', function (\Illuminate\Contracts\Database\Query\Builder $query) {
- $query->where('is_published', true);
-});
-
-$query->orWhereHas('posts', function (\Illuminate\Contracts\Database\Query\Builder $query) {
- $query->where('is_published', true);
-});
-
-$query->whereDoesntHave('posts', function (\Illuminate\Contracts\Database\Query\Builder $query) {
- $query->where('is_published', true);
-});
-
-$query->orWhereDoesntHave('posts', function (\Illuminate\Contracts\Database\Query\Builder $query) {
- $query->where('is_published', true);
-});
-
-$query->whereHasMorph('posts', [], function (\Illuminate\Contracts\Database\Query\Builder $query) {
- $query->where('is_published', true);
-});
-
-$query->orWhereHasMorph('posts', [], function (\Illuminate\Contracts\Database\Query\Builder $query) {
- $query->where('is_published', true);
-});
-
-$query->whereDoesntHaveMorph('posts', [], function (\Illuminate\Contracts\Database\Query\Builder $query) {
- $query->where('is_published', true);
-});
-
-$query->orWhereDoesntHaveMorph('posts', [], function (\Illuminate\Contracts\Database\Query\Builder $query) {
- $query->where('is_published', true);
-});
-
-?>
diff --git a/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/Fixture/fixture2.php.inc b/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/Fixture/fixture2.php.inc
deleted file mode 100644
index f784bcd3..00000000
--- a/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/Fixture/fixture2.php.inc
+++ /dev/null
@@ -1,21 +0,0 @@
-whereHas('posts', fn ($query) =>
- $query->where('is_published', true)
-);
-
-?>
------
-whereHas('posts', fn (\Illuminate\Contracts\Database\Query\Builder $query) =>
- $query->where('is_published', true)
-);
-
-?>
diff --git a/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/Fixture/fixture3.php.inc b/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/Fixture/fixture3.php.inc
deleted file mode 100644
index 6512cfe9..00000000
--- a/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/Fixture/fixture3.php.inc
+++ /dev/null
@@ -1,29 +0,0 @@
-where('is_published', true);
-});
-
-?>
------
-where('is_published', true);
-});
-
-?>
diff --git a/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/Fixture/skip_non_closure_argument.php.inc b/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/Fixture/skip_non_closure_argument.php.inc
deleted file mode 100644
index 54bacbfb..00000000
--- a/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/Fixture/skip_non_closure_argument.php.inc
+++ /dev/null
@@ -1,20 +0,0 @@
-whereHas('posts');
-$query->whereHas('posts', null);
-$query->whereHasMorph('posts', '', null);
-
-class User extends \Illuminate\Database\Eloquent\Model
-{
-
-}
-
-User::whereHas('posts');
-User::whereHas('posts', null);
-User::whereHasMorph('posts', '');
-User::whereHasMorph('posts', '', null);
-
-?>
diff --git a/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/Fixture/skip_non_query_object.php.inc b/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/Fixture/skip_non_query_object.php.inc
deleted file mode 100644
index 40b02090..00000000
--- a/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/Fixture/skip_non_query_object.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-whereHas('posts', fn ($query) =>
- $query->where('is_published', true)
-);
-
-RandomClass::whereHas('posts', fn ($query) =>
- $query->where('is_published', true)
-);
-
-?>
diff --git a/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/config/configured_rule.php b/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/config/configured_rule.php
deleted file mode 100644
index 648875bb..00000000
--- a/tests/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(EloquentWhereRelationTypeHintingParameterRector::class);
-};
diff --git a/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/EloquentWhereTypeHintClosureParameterRectorTest.php b/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/EloquentWhereTypeHintClosureParameterRectorTest.php
deleted file mode 100644
index 62954145..00000000
--- a/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/EloquentWhereTypeHintClosureParameterRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/Fixture/fixture.php.inc b/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/Fixture/fixture.php.inc
deleted file mode 100644
index 83db6452..00000000
--- a/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,23 +0,0 @@
-where(function ($query) {
- $query->where('id', 1)
- ->orWhere('id', 2);
-});
-
-?>
------
-where(function (\Illuminate\Contracts\Database\Query\Builder $query) {
- $query->where('id', 1)
- ->orWhere('id', 2);
-});
-
-?>
diff --git a/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/Fixture/fixture2.php.inc b/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/Fixture/fixture2.php.inc
deleted file mode 100644
index 28df259f..00000000
--- a/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/Fixture/fixture2.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-where('id', 1)
- ->orWhere('id', 2);
-});
-
-?>
------
-where('id', 1)
- ->orWhere('id', 2);
-});
-
-?>
diff --git a/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/Fixture/fixture3.php.inc b/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/Fixture/fixture3.php.inc
deleted file mode 100644
index 1101654f..00000000
--- a/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/Fixture/fixture3.php.inc
+++ /dev/null
@@ -1,23 +0,0 @@
-where(fn ($query) =>
- $query->where('id', 1)
- ->orWhere('id', 2)
-);
-
-?>
------
-where(fn (\Illuminate\Contracts\Database\Query\Builder $query) =>
- $query->where('id', 1)
- ->orWhere('id', 2)
-);
-
-?>
diff --git a/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/Fixture/skip_non_closure_argument.php.inc b/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/Fixture/skip_non_closure_argument.php.inc
deleted file mode 100644
index 4dec9198..00000000
--- a/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/Fixture/skip_non_closure_argument.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-where('name', 'a');
-
-class User extends \Illuminate\Database\Eloquent\Model
-{
-
-}
-
-User::where('name', 'a');
-
-?>
diff --git a/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/Fixture/skip_non_query_object.php.inc b/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/Fixture/skip_non_query_object.php.inc
deleted file mode 100644
index cc4a5614..00000000
--- a/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/Fixture/skip_non_query_object.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-whereHas('posts', fn ($query) =>
- $query->where('is_published', true)
-);
-
-RandomClass::whereHas('posts', fn ($query) =>
- $query->where('is_published', true)
-);
-
-?>
diff --git a/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/config/configured_rule.php b/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/config/configured_rule.php
deleted file mode 100644
index 80ece6f6..00000000
--- a/tests/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(EloquentWhereTypeHintClosureParameterRector::class);
-};
diff --git a/tests/Rector/MethodCall/FactoryApplyingStatesRector/FactoryApplyingStatesRectorTest.php b/tests/Rector/MethodCall/FactoryApplyingStatesRector/FactoryApplyingStatesRectorTest.php
deleted file mode 100644
index 05605231..00000000
--- a/tests/Rector/MethodCall/FactoryApplyingStatesRector/FactoryApplyingStatesRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/FactoryApplyingStatesRector/Fixture/fixture.php.inc b/tests/Rector/MethodCall/FactoryApplyingStatesRector/Fixture/fixture.php.inc
deleted file mode 100644
index a472ce83..00000000
--- a/tests/Rector/MethodCall/FactoryApplyingStatesRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,23 +0,0 @@
-states([]);
-$factory->state('delinquent');
-$factory->states('delinquent');
-$factory->states('premium', 'delinquent');
-
-?>
------
-delinquent();
-$factory->delinquent();
-$factory->premium()->delinquent();
-
-?>
diff --git a/tests/Rector/MethodCall/FactoryApplyingStatesRector/config/configured_rule.php b/tests/Rector/MethodCall/FactoryApplyingStatesRector/config/configured_rule.php
deleted file mode 100644
index 4469bee8..00000000
--- a/tests/Rector/MethodCall/FactoryApplyingStatesRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(FactoryApplyingStatesRector::class);
-};
diff --git a/tests/Rector/MethodCall/JsonCallToExplicitJsonCallRector/Fixture/fixture_with_json_calls.php.inc b/tests/Rector/MethodCall/JsonCallToExplicitJsonCallRector/Fixture/fixture_with_json_calls.php.inc
deleted file mode 100644
index 19a9c0b3..00000000
--- a/tests/Rector/MethodCall/JsonCallToExplicitJsonCallRector/Fixture/fixture_with_json_calls.php.inc
+++ /dev/null
@@ -1,97 +0,0 @@
-json('get', '/');
- }
-
- public function testGetWithRouteHelper(MakesHttpRequests $http)
- {
- $http->json('GET', route('home'));
- $http->json('GET', route('home'), ['payload']);
- $http->json('GET', route('home'), data: ['payload']);
- $http->json('GET', route('home', 'some arg'), ['payload']);
- }
-
- public function testPost(MakesHttpRequests $http)
- {
- $http->json('post', '/');
- }
-
- public function testPut(MakesHttpRequests $http)
- {
- $http->json('put', '/');
- }
-
- public function testPatch(MakesHttpRequests $http)
- {
- $http->json('patch', '/');
- }
-
- public function testDelete(MakesHttpRequests $http)
- {
- $http->json('delete', '/');
- }
-
- public function testOptions(MakesHttpRequests $http)
- {
- $http->json('options', '/');
- }
-}
-
-?>
------
-getJson('/');
- }
-
- public function testGetWithRouteHelper(MakesHttpRequests $http)
- {
- $http->getJson(route('home'));
- $http->getJson(route('home', ['payload']));
- $http->getJson(route('home', ['payload']));
- $http->json('GET', route('home', 'some arg'), ['payload']);
- }
-
- public function testPost(MakesHttpRequests $http)
- {
- $http->postJson('/');
- }
-
- public function testPut(MakesHttpRequests $http)
- {
- $http->putJson('/');
- }
-
- public function testPatch(MakesHttpRequests $http)
- {
- $http->patchJson('/');
- }
-
- public function testDelete(MakesHttpRequests $http)
- {
- $http->deleteJson('/');
- }
-
- public function testOptions(MakesHttpRequests $http)
- {
- $http->optionsJson('/');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/JsonCallToExplicitJsonCallRector/Fixture/fixture_with_json_calls_to_skip.php.inc b/tests/Rector/MethodCall/JsonCallToExplicitJsonCallRector/Fixture/fixture_with_json_calls_to_skip.php.inc
deleted file mode 100644
index e6fcb301..00000000
--- a/tests/Rector/MethodCall/JsonCallToExplicitJsonCallRector/Fixture/fixture_with_json_calls_to_skip.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-json('head', '/');
- }
-
- public function testTrace(MakesHttpRequests $http)
- {
- $http->json('trace', '/');
- }
-
- public function testConnect(MakesHttpRequests $http)
- {
- $http->json('connect', '/');
- }
-
- public function testNotEnoughArgs(MakesHttpRequests $http)
- {
- $http->json('GET');
- $http->json();
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/JsonCallToExplicitJsonCallRector/Fixture/skip_invalid_get_json_calls.php.inc b/tests/Rector/MethodCall/JsonCallToExplicitJsonCallRector/Fixture/skip_invalid_get_json_calls.php.inc
deleted file mode 100644
index d1ffc808..00000000
--- a/tests/Rector/MethodCall/JsonCallToExplicitJsonCallRector/Fixture/skip_invalid_get_json_calls.php.inc
+++ /dev/null
@@ -1,35 +0,0 @@
-json('GET', '/', ['data'], ['headers'], 1);
- }
-
- public function testGetWithoutOptions(MakesHttpRequests $http)
- {
- $http->json('GET', '/', ['data'], ['headers']);
- }
-
- public function testGetWithoutHeaders(MakesHttpRequests $http)
- {
- $http->json('GET', '/', ['data']);
- }
-
- public function testGetWithNamedHeaders(MakesHttpRequests $http)
- {
- $http->json('GET', route('home'), headers: ['payload']);
- }
-
- public function testGetWithNamedOptions(MakesHttpRequests $http)
- {
- $http->json('GET', route('home'), options: 1);
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/JsonCallToExplicitJsonCallRector/JsonCallToExplicitJsonCallRectorTest.php b/tests/Rector/MethodCall/JsonCallToExplicitJsonCallRector/JsonCallToExplicitJsonCallRectorTest.php
deleted file mode 100644
index 96bd2d75..00000000
--- a/tests/Rector/MethodCall/JsonCallToExplicitJsonCallRector/JsonCallToExplicitJsonCallRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/JsonCallToExplicitJsonCallRector/config/configured_rule.php b/tests/Rector/MethodCall/JsonCallToExplicitJsonCallRector/config/configured_rule.php
deleted file mode 100644
index 44471c24..00000000
--- a/tests/Rector/MethodCall/JsonCallToExplicitJsonCallRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(JsonCallToExplicitJsonCallRector::class);
-};
diff --git a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/Fixture/routes_action_string.php.inc b/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/Fixture/routes_action_string.php.inc
deleted file mode 100644
index 288657d5..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/Fixture/routes_action_string.php.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-get('/', 'HomeController@home');
-
-?>
------
-get('/', ['uses' => 'HomeController@home']);
-
-?>
diff --git a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/Fixture/skip_routes_action_anonymous_function.php.inc b/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/Fixture/skip_routes_action_anonymous_function.php.inc
deleted file mode 100644
index b67cd7e3..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/Fixture/skip_routes_action_anonymous_function.php.inc
+++ /dev/null
@@ -1,10 +0,0 @@
-get('foo', function () {
- return 'Hello World';
-});
-
-?>
diff --git a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/Fixture/skip_routes_action_array.php.inc b/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/Fixture/skip_routes_action_array.php.inc
deleted file mode 100644
index 41bfa4c0..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/Fixture/skip_routes_action_array.php.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-get('foo', []);
-
-?>
diff --git a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/LumenRoutesStringActionToUsesArrayRectorTest.php b/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/LumenRoutesStringActionToUsesArrayRectorTest.php
deleted file mode 100644
index 8fc1d696..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/LumenRoutesStringActionToUsesArrayRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/config/configured_rule.php b/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/config/configured_rule.php
deleted file mode 100644
index f7e10cab..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(LumenRoutesStringActionToUsesArrayRector::class);
-};
diff --git a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/group_method_middleware_not_an_array.php.inc b/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/group_method_middleware_not_an_array.php.inc
deleted file mode 100644
index 4b4f5dd5..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/group_method_middleware_not_an_array.php.inc
+++ /dev/null
@@ -1,21 +0,0 @@
-group(['middleware' => 'auth'], function () use ($router) {
- $router->get('/', 'HomeController@home');
-});
-
-?>
------
-group(['middleware' => ['auth']], function () use ($router) {
- $router->get('/', 'HomeController@home');
-});
-
-?>
diff --git a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/routes_method_middleware_not_an_array.php.inc b/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/routes_method_middleware_not_an_array.php.inc
deleted file mode 100644
index 22c9dd0f..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/routes_method_middleware_not_an_array.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-get('/', ['uses' => 'HomeController@home', 'middleware' => 'auth']);
-$router->post('/', ['uses' => 'HomeController@home', 'middleware' => 'auth']);
-$router->put('/', ['uses' => 'HomeController@home', 'middleware' => 'auth']);
-$router->delete('/', ['uses' => 'HomeController@home', 'middleware' => 'auth']);
-$router->options('/', ['uses' => 'HomeController@home', 'middleware' => 'auth']);
-$router->patch('/', ['uses' => 'HomeController@home', 'middleware' => 'auth']);
-
-?>
------
-get('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->post('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->put('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->delete('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->options('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->patch('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-
-?>
diff --git a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/routes_method_middleware_string_array_notation.php.inc b/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/routes_method_middleware_string_array_notation.php.inc
deleted file mode 100644
index c76fca30..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/routes_method_middleware_string_array_notation.php.inc
+++ /dev/null
@@ -1,21 +0,0 @@
-group(['middleware' => 'first|second'], function () use ($router) {
- $router->get('/', ['uses' => 'HomeController@home', 'middleware' => 'third|fourth']);
-});
-
-?>
------
-group(['middleware' => ['first', 'second']], function () use ($router) {
- $router->get('/', ['uses' => 'HomeController@home', 'middleware' => ['third', 'fourth']]);
-});
-
-?>
diff --git a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/skip_group_method_middleware_an_array.php.inc b/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/skip_group_method_middleware_an_array.php.inc
deleted file mode 100644
index a64d6238..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/skip_group_method_middleware_an_array.php.inc
+++ /dev/null
@@ -1,10 +0,0 @@
-group(['middleware' => ['auth']], function () use ($router) {
- $router->get('/', 'HomeController@home');
-});
-
-?>
diff --git a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/skip_routes_method_middleware_an_array.php.inc b/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/skip_routes_method_middleware_an_array.php.inc
deleted file mode 100644
index 4b385f7a..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/skip_routes_method_middleware_an_array.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-get('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->post('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->put('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->delete('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->options('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->patch('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-
-?>
diff --git a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/LumenRoutesStringMiddlewareToArrayRectorTest.php b/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/LumenRoutesStringMiddlewareToArrayRectorTest.php
deleted file mode 100644
index d70b19af..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/LumenRoutesStringMiddlewareToArrayRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/config/configured_rule.php b/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/config/configured_rule.php
deleted file mode 100644
index cdc53ba7..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(LumenRoutesStringMiddlewareToArrayRector::class);
-};
diff --git a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/fixture.php.inc b/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/fixture.php.inc
deleted file mode 100644
index fc5b8301..00000000
--- a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,41 +0,0 @@
-back()->with('error', 'Incorrect credential.');
- }
-
- public function update()
- {
- return Redirect::back()->with('error', 'Incorrect credential.');
- }
-}
-
-?>
------
-with('error', 'Incorrect credential.');
- }
-
- public function update()
- {
- return back()->with('error', 'Incorrect credential.');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/fixture_with_argument.php.inc b/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/fixture_with_argument.php.inc
deleted file mode 100644
index 31d16db5..00000000
--- a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/fixture_with_argument.php.inc
+++ /dev/null
@@ -1,41 +0,0 @@
-back(302);
- }
-
- public function update()
- {
- return Redirect::back(302);
- }
-}
-
-?>
------
-
diff --git a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/fixture_without_with.php.inc b/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/fixture_without_with.php.inc
deleted file mode 100644
index eaebdbae..00000000
--- a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/fixture_without_with.php.inc
+++ /dev/null
@@ -1,41 +0,0 @@
-back();
- }
-
- public function update()
- {
- return Redirect::back();
- }
-}
-
-?>
------
-
diff --git a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/skip_with_arguments.php.inc b/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/skip_with_arguments.php.inc
deleted file mode 100644
index bc0348f2..00000000
--- a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/skip_with_arguments.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-back()->with('error', 'Incorrect credential.');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/skip_with_object_call.php.inc b/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/skip_with_object_call.php.inc
deleted file mode 100644
index 6427cf1c..00000000
--- a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/skip_with_object_call.php.inc
+++ /dev/null
@@ -1,15 +0,0 @@
-back()->with('error', 'Incorrect credential.');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/skip_with_only_back.php.inc b/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/skip_with_only_back.php.inc
deleted file mode 100644
index 88b173fc..00000000
--- a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/skip_with_only_back.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-with('error', 'Incorrect credential.');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/RedirectBackToBackHelperRectorTest.php b/tests/Rector/MethodCall/RedirectBackToBackHelperRector/RedirectBackToBackHelperRectorTest.php
deleted file mode 100644
index 1e634d7d..00000000
--- a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/RedirectBackToBackHelperRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/config/configured_rule.php b/tests/Rector/MethodCall/RedirectBackToBackHelperRector/config/configured_rule.php
deleted file mode 100644
index 430e2a7e..00000000
--- a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(RedirectBackToBackHelperRector::class);
-};
diff --git a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/fixture.php.inc b/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/fixture.php.inc
deleted file mode 100644
index 2d8c9d1b..00000000
--- a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,41 +0,0 @@
-route('home')->with('error', 'Incorrect credential.');
- }
-
- public function update()
- {
- return Redirect::route('home')->with('error', 'Incorrect credential.');
- }
-}
-
-?>
------
-with('error', 'Incorrect credential.');
- }
-
- public function update()
- {
- return to_route('home')->with('error', 'Incorrect credential.');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/fixture_without_with.php.inc b/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/fixture_without_with.php.inc
deleted file mode 100644
index ab0c28b3..00000000
--- a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/fixture_without_with.php.inc
+++ /dev/null
@@ -1,41 +0,0 @@
-route('home');
- }
-
- public function update()
- {
- return Redirect::route('home');
- }
-}
-
-?>
------
-
diff --git a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/skip_with_object_call.php.inc b/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/skip_with_object_call.php.inc
deleted file mode 100644
index d2989286..00000000
--- a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/skip_with_object_call.php.inc
+++ /dev/null
@@ -1,15 +0,0 @@
-route('home')->with('error', 'Incorrect credential.');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/skip_with_only_back.php.inc b/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/skip_with_only_back.php.inc
deleted file mode 100644
index 1f20c6f4..00000000
--- a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/skip_with_only_back.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-with('error', 'Incorrect credential.');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/RedirectRouteToToRouteHelperRectorTest.php b/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/RedirectRouteToToRouteHelperRectorTest.php
deleted file mode 100644
index 07273943..00000000
--- a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/RedirectRouteToToRouteHelperRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/config/configured_rule.php b/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/config/configured_rule.php
deleted file mode 100644
index 4a234f4e..00000000
--- a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(RedirectRouteToToRouteHelperRector::class);
-};
diff --git a/tests/Rector/MethodCall/RefactorBlueprintGeometryColumnsRector/Fixture/fixture.php.inc b/tests/Rector/MethodCall/RefactorBlueprintGeometryColumnsRector/Fixture/fixture.php.inc
deleted file mode 100644
index edadc198..00000000
--- a/tests/Rector/MethodCall/RefactorBlueprintGeometryColumnsRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,29 +0,0 @@
-point('coordinates')->spatialIndex();
-$table->linestring('coordinates')->spatialIndex();
-$table->polygon('coordinates')->spatialIndex();
-$table->geometrycollection('coordinates')->spatialIndex();
-$table->multipoint('coordinates')->spatialIndex();
-$table->multilinestring('coordinates')->spatialIndex();
-$table->multipolygon('coordinates')->spatialIndex();
-
-?>
------
-geometry('coordinates', 'point')->spatialIndex();
-$table->geometry('coordinates', 'linestring')->spatialIndex();
-$table->geometry('coordinates', 'polygon')->spatialIndex();
-$table->geometry('coordinates', 'geometrycollection')->spatialIndex();
-$table->geometry('coordinates', 'multipoint')->spatialIndex();
-$table->geometry('coordinates', 'multilinestring')->spatialIndex();
-$table->geometry('coordinates', 'multipolygon')->spatialIndex();
-
-?>
diff --git a/tests/Rector/MethodCall/RefactorBlueprintGeometryColumnsRector/Fixture/skip_non_blueprint_objects.php.inc b/tests/Rector/MethodCall/RefactorBlueprintGeometryColumnsRector/Fixture/skip_non_blueprint_objects.php.inc
deleted file mode 100644
index 2561277f..00000000
--- a/tests/Rector/MethodCall/RefactorBlueprintGeometryColumnsRector/Fixture/skip_non_blueprint_objects.php.inc
+++ /dev/null
@@ -1,14 +0,0 @@
-point('coordinates')->spatialIndex();
-$table->linestring('coordinates')->spatialIndex();
-$table->polygon('coordinates')->spatialIndex();
-$table->geometrycollection('coordinates')->spatialIndex();
-$table->multipoint('coordinates')->spatialIndex();
-$table->multilinestring('coordinates')->spatialIndex();
-$table->multipolygon('coordinates')->spatialIndex();
-
-?>
diff --git a/tests/Rector/MethodCall/RefactorBlueprintGeometryColumnsRector/Fixture/skip_non_matching_method_call.php.inc b/tests/Rector/MethodCall/RefactorBlueprintGeometryColumnsRector/Fixture/skip_non_matching_method_call.php.inc
deleted file mode 100644
index 780da3c1..00000000
--- a/tests/Rector/MethodCall/RefactorBlueprintGeometryColumnsRector/Fixture/skip_non_matching_method_call.php.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-string('coordinates')->nullable();
-
-?>
diff --git a/tests/Rector/MethodCall/RefactorBlueprintGeometryColumnsRector/RefactorBlueprintGeometryColumnsRectorTest.php b/tests/Rector/MethodCall/RefactorBlueprintGeometryColumnsRector/RefactorBlueprintGeometryColumnsRectorTest.php
deleted file mode 100644
index 7393b11a..00000000
--- a/tests/Rector/MethodCall/RefactorBlueprintGeometryColumnsRector/RefactorBlueprintGeometryColumnsRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/RefactorBlueprintGeometryColumnsRector/config/configured_rule.php b/tests/Rector/MethodCall/RefactorBlueprintGeometryColumnsRector/config/configured_rule.php
deleted file mode 100644
index 4b2976a9..00000000
--- a/tests/Rector/MethodCall/RefactorBlueprintGeometryColumnsRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(RefactorBlueprintGeometryColumnsRector::class);
-};
diff --git a/tests/Rector/MethodCall/ReplaceServiceContainerCallArgRector/Fixture/fixture.php.inc b/tests/Rector/MethodCall/ReplaceServiceContainerCallArgRector/Fixture/fixture.php.inc
deleted file mode 100644
index 71530570..00000000
--- a/tests/Rector/MethodCall/ReplaceServiceContainerCallArgRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,43 +0,0 @@
-make('encrypter')->encrypt('hello world');
-}
-
-\Illuminate\Support\Facades\Application::make('encrypter')->encrypt('hello world');
-
-app('encrypter')->encrypt('hello world');
-
-function foo(\Illuminate\Contracts\Container\Container $app) {
- $app->make(\Illuminate\Contracts\Session\Session::class)->get('hello world');
-}
-
-\Illuminate\Support\Facades\Application::make(\Illuminate\Contracts\Session\Session::class)->get('hello world');
-
-app(\Illuminate\Contracts\Session\Session::class)->get('hello world');
-
-?>
------
-make(\Illuminate\Contracts\Encryption\Encrypter::class)->encrypt('hello world');
-}
-
-\Illuminate\Support\Facades\Application::make(\Illuminate\Contracts\Encryption\Encrypter::class)->encrypt('hello world');
-
-app(\Illuminate\Contracts\Encryption\Encrypter::class)->encrypt('hello world');
-
-function foo(\Illuminate\Contracts\Container\Container $app) {
- $app->make('session')->get('hello world');
-}
-
-\Illuminate\Support\Facades\Application::make('session')->get('hello world');
-
-app('session')->get('hello world');
-
-?>
diff --git a/tests/Rector/MethodCall/ReplaceServiceContainerCallArgRector/Fixture/skip_non_configured_services.php.inc b/tests/Rector/MethodCall/ReplaceServiceContainerCallArgRector/Fixture/skip_non_configured_services.php.inc
deleted file mode 100644
index 4b8beb5b..00000000
--- a/tests/Rector/MethodCall/ReplaceServiceContainerCallArgRector/Fixture/skip_non_configured_services.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-make('foobar')->encrypt('hello world');
-}
-
-\Illuminate\Support\Facades\Application::make('foobar')->encrypt('hello world');
-
-app('foobar')->encrypt('foobar');
-
-?>
diff --git a/tests/Rector/MethodCall/ReplaceServiceContainerCallArgRector/Fixture/skip_non_matching_classes.php.inc b/tests/Rector/MethodCall/ReplaceServiceContainerCallArgRector/Fixture/skip_non_matching_classes.php.inc
deleted file mode 100644
index 2cebc8ae..00000000
--- a/tests/Rector/MethodCall/ReplaceServiceContainerCallArgRector/Fixture/skip_non_matching_classes.php.inc
+++ /dev/null
@@ -1,11 +0,0 @@
-make('encrypter')->encrypt('hello world');
-}
-
-Application::make('encrypter')->encrypt('hello world');
-
-?>
diff --git a/tests/Rector/MethodCall/ReplaceServiceContainerCallArgRector/Fixture/skip_non_matching_method_calls.php.inc b/tests/Rector/MethodCall/ReplaceServiceContainerCallArgRector/Fixture/skip_non_matching_method_calls.php.inc
deleted file mode 100644
index 9145b599..00000000
--- a/tests/Rector/MethodCall/ReplaceServiceContainerCallArgRector/Fixture/skip_non_matching_method_calls.php.inc
+++ /dev/null
@@ -1,11 +0,0 @@
-build('encrypter')->encrypt('hello world');
-}
-
-\Illuminate\Support\Facades\Application::build('encrypter')->encrypt('hello world');
-
-?>
diff --git a/tests/Rector/MethodCall/ReplaceServiceContainerCallArgRector/ReplaceServiceContainerCallArgRectorTest.php b/tests/Rector/MethodCall/ReplaceServiceContainerCallArgRector/ReplaceServiceContainerCallArgRectorTest.php
deleted file mode 100644
index 4edc7406..00000000
--- a/tests/Rector/MethodCall/ReplaceServiceContainerCallArgRector/ReplaceServiceContainerCallArgRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/ReplaceServiceContainerCallArgRector/config/configured_rule.php b/tests/Rector/MethodCall/ReplaceServiceContainerCallArgRector/config/configured_rule.php
deleted file mode 100644
index ce2de9ea..00000000
--- a/tests/Rector/MethodCall/ReplaceServiceContainerCallArgRector/config/configured_rule.php
+++ /dev/null
@@ -1,33 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->ruleWithConfiguration(
- ReplaceServiceContainerCallArgRector::class,
- [
- new ReplaceServiceContainerCallArg(
- 'encrypter',
- new ClassConstFetch(
- new FullyQualified('Illuminate\Contracts\Encryption\Encrypter'),
- 'class'
- ),
- ),
- new ReplaceServiceContainerCallArg(
- new ClassConstFetch(
- new FullyQualified('Illuminate\Contracts\Session\Session'),
- 'class'
- ),
- 'session',
- ),
- ]
- );
-};
diff --git a/tests/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector/Fixture/fixture.php.inc b/tests/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector/Fixture/fixture.php.inc
deleted file mode 100644
index 46e0fe02..00000000
--- a/tests/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,39 +0,0 @@
-withoutJobs();
- $this->withoutEvents();
- $this->withoutNotifications();
-
- $this->get('/');
- }
-}
-
-?>
------
-get('/');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector/Fixture/skip_non_test_case.php.inc b/tests/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector/Fixture/skip_non_test_case.php.inc
deleted file mode 100644
index 0acdab19..00000000
--- a/tests/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector/Fixture/skip_non_test_case.php.inc
+++ /dev/null
@@ -1,18 +0,0 @@
-withoutJobs();
- $this->withoutEvents();
- $this->withoutNotifications();
-
- $this->get('/');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRectorTest.php b/tests/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRectorTest.php
deleted file mode 100644
index 1846cb76..00000000
--- a/tests/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector/config/configured_rule.php b/tests/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector/config/configured_rule.php
deleted file mode 100644
index 4529b5e8..00000000
--- a/tests/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector::class);
-};
diff --git a/tests/Rector/MethodCall/ReverseConditionableMethodCallRector/Fixture/fixture.php.inc b/tests/Rector/MethodCall/ReverseConditionableMethodCallRector/Fixture/fixture.php.inc
deleted file mode 100644
index f43d232f..00000000
--- a/tests/Rector/MethodCall/ReverseConditionableMethodCallRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,25 +0,0 @@
-when(!true, function () {});
-$conditionable->unless(!false, function () {});
-
-?>
------
-unless(true, function () {});
-$conditionable->when(false, function () {});
-
-?>
diff --git a/tests/Rector/MethodCall/ReverseConditionableMethodCallRector/Fixture/skip_non_conditionable_object.php.inc b/tests/Rector/MethodCall/ReverseConditionableMethodCallRector/Fixture/skip_non_conditionable_object.php.inc
deleted file mode 100644
index 3db99d0b..00000000
--- a/tests/Rector/MethodCall/ReverseConditionableMethodCallRector/Fixture/skip_non_conditionable_object.php.inc
+++ /dev/null
@@ -1,10 +0,0 @@
-when(!true, function () {});
-$conditionable->unless(!false, function () {});
-
-?>
diff --git a/tests/Rector/MethodCall/ReverseConditionableMethodCallRector/ReverseConditionableMethodCallRectorTest.php b/tests/Rector/MethodCall/ReverseConditionableMethodCallRector/ReverseConditionableMethodCallRectorTest.php
deleted file mode 100644
index 95715778..00000000
--- a/tests/Rector/MethodCall/ReverseConditionableMethodCallRector/ReverseConditionableMethodCallRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/ReverseConditionableMethodCallRector/Source/ConditionableExample.php b/tests/Rector/MethodCall/ReverseConditionableMethodCallRector/Source/ConditionableExample.php
deleted file mode 100644
index 25290570..00000000
--- a/tests/Rector/MethodCall/ReverseConditionableMethodCallRector/Source/ConditionableExample.php
+++ /dev/null
@@ -1,10 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(ReverseConditionableMethodCallRector::class);
-};
diff --git a/tests/Rector/MethodCall/UseComponentPropertyWithinCommandsRector/Fixture/fixture.php.inc b/tests/Rector/MethodCall/UseComponentPropertyWithinCommandsRector/Fixture/fixture.php.inc
deleted file mode 100644
index d0378615..00000000
--- a/tests/Rector/MethodCall/UseComponentPropertyWithinCommandsRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,57 +0,0 @@
-ask('What is your name?');
- $this->line('Thank you!');
- $this->info('Thank you!');
- $this->error('Thank you!');
- $this->warn('Thank you!');
- $this->confirm('Thank you!');
- $this->askWithCompletion('Thank you!');
- $this->choice('Thank you!');
- $this->alert('Thank you!');
- }
-
- public function test()
- {
- $this->ask('What is your name?');
- }
-}
-
-?>
------
-components->ask('What is your name?');
- $this->components->line('Thank you!');
- $this->components->info('Thank you!');
- $this->components->error('Thank you!');
- $this->components->warn('Thank you!');
- $this->components->confirm('Thank you!');
- $this->components->askWithCompletion('Thank you!');
- $this->components->choice('Thank you!');
- $this->components->alert('Thank you!');
- }
-
- public function test()
- {
- $this->components->ask('What is your name?');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/UseComponentPropertyWithinCommandsRector/Fixture/skip_non_command_extending_classes.php.inc b/tests/Rector/MethodCall/UseComponentPropertyWithinCommandsRector/Fixture/skip_non_command_extending_classes.php.inc
deleted file mode 100644
index ccc57d2c..00000000
--- a/tests/Rector/MethodCall/UseComponentPropertyWithinCommandsRector/Fixture/skip_non_command_extending_classes.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-ask('What is your name?');
- }
-}
-
-?>
------
-ask('What is your name?');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/UseComponentPropertyWithinCommandsRector/Fixture/skip_non_component_methods.php.inc b/tests/Rector/MethodCall/UseComponentPropertyWithinCommandsRector/Fixture/skip_non_component_methods.php.inc
deleted file mode 100644
index e7d6b80c..00000000
--- a/tests/Rector/MethodCall/UseComponentPropertyWithinCommandsRector/Fixture/skip_non_component_methods.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-test();
- }
-}
-
-?>
------
-test();
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/UseComponentPropertyWithinCommandsRector/UseComponentPropertyWithinCommandsRectorTest.php b/tests/Rector/MethodCall/UseComponentPropertyWithinCommandsRector/UseComponentPropertyWithinCommandsRectorTest.php
deleted file mode 100644
index 958de18c..00000000
--- a/tests/Rector/MethodCall/UseComponentPropertyWithinCommandsRector/UseComponentPropertyWithinCommandsRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/UseComponentPropertyWithinCommandsRector/config/configured_rule.php b/tests/Rector/MethodCall/UseComponentPropertyWithinCommandsRector/config/configured_rule.php
deleted file mode 100644
index c7ae9c6f..00000000
--- a/tests/Rector/MethodCall/UseComponentPropertyWithinCommandsRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(UseComponentPropertyWithinCommandsRector::class);
-};
diff --git a/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/Fixture/SkipNonFormRequestClass.php.inc b/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/Fixture/SkipNonFormRequestClass.php.inc
deleted file mode 100644
index d8fe6cfb..00000000
--- a/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/Fixture/SkipNonFormRequestClass.php.inc
+++ /dev/null
@@ -1,15 +0,0 @@
- 'required|string',
- ];
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/Fixture/applies_to_classes_extending_form_request.php.inc b/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/Fixture/applies_to_classes_extending_form_request.php.inc
deleted file mode 100644
index 09ce51be..00000000
--- a/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/Fixture/applies_to_classes_extending_form_request.php.inc
+++ /dev/null
@@ -1,35 +0,0 @@
- 'required|string',
- ];
- }
-}
-
-?>
------
- ['required', 'string'],
- ];
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/Fixture/fixture.php.inc b/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/Fixture/fixture.php.inc
deleted file mode 100644
index f44a652c..00000000
--- a/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
- 'value'], [
- 'name' => 'required|string',
- ]);
-
- $validator->make(['name' => 'value'], [
- 'name' => 'required|string',
- ]);
-}
-
-?>
------
- 'value'], [
- 'name' => ['required', 'string'],
- ]);
-
- $validator->make(['name' => 'value'], [
- 'name' => ['required', 'string'],
- ]);
-}
-
-?>
diff --git a/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/Fixture/skip_form_request_non_rules_class_method.php.inc b/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/Fixture/skip_form_request_non_rules_class_method.php.inc
deleted file mode 100644
index 13698a1f..00000000
--- a/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/Fixture/skip_form_request_non_rules_class_method.php.inc
+++ /dev/null
@@ -1,17 +0,0 @@
- 'required|string',
- ];
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/Fixture/skips_arrays_with_sub_arrays_already.php.inc b/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/Fixture/skips_arrays_with_sub_arrays_already.php.inc
deleted file mode 100644
index e10ad749..00000000
--- a/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/Fixture/skips_arrays_with_sub_arrays_already.php.inc
+++ /dev/null
@@ -1,11 +0,0 @@
-make(['name' => 'value'], [
- 'name' => ['required', 'string'],
- ]);
-}
-
-?>
diff --git a/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/Fixture/skips_non_validator_method_call.php.inc b/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/Fixture/skips_non_validator_method_call.php.inc
deleted file mode 100644
index d50b30a4..00000000
--- a/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/Fixture/skips_non_validator_method_call.php.inc
+++ /dev/null
@@ -1,11 +0,0 @@
-make(['name' => 'value'], [
- 'name' => ['required', 'string'],
- ]);
-}
-
-?>
diff --git a/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/ValidationRuleArrayStringValueToArrayRectorTest.php b/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/ValidationRuleArrayStringValueToArrayRectorTest.php
deleted file mode 100644
index 3c514002..00000000
--- a/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/ValidationRuleArrayStringValueToArrayRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/config/configured_rule.php b/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/config/configured_rule.php
deleted file mode 100644
index 11da1a1f..00000000
--- a/tests/Rector/MethodCall/ValidationRuleArrayStringValueToArrayRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(ValidationRuleArrayStringValueToArrayRector::class);
-};
diff --git a/tests/Rector/Namespace_/FactoryDefinitionRector/FactoryDefinitionRectorTest.php b/tests/Rector/Namespace_/FactoryDefinitionRector/FactoryDefinitionRectorTest.php
deleted file mode 100644
index 8cd41bfe..00000000
--- a/tests/Rector/Namespace_/FactoryDefinitionRector/FactoryDefinitionRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/fixture.php.inc b/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/fixture.php.inc
deleted file mode 100644
index 9a0b84a5..00000000
--- a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,77 +0,0 @@
-define(Model::class, function ($faker) {
- return [
- 'name' => $faker->name,
- 'email' => $faker->unique()->safeEmail,
- 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
- ];
-});
-
-$factory->state(Model::class, 'address', function ($faker) {
- return [
- 'address' => $faker->address,
- ];
-});
-
-$factory->state(Model::class, 'delinquent', [
- 'account_status' => 'delinquent',
-]);
-
-$factory->afterMaking(Model::class, function (Model $user, $faker) {
- $user->name = $faker->name;
-});
-
-$factory->afterCreating(Model::class, function ($user, $faker) {
- $user->name = $faker->name;
- $user->accounts()->save(factory(\App\Account::class)->make());
-});
-
-?>
------
- $this->faker->name,
- 'email' => $this->faker->unique()->safeEmail,
- 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
- ];
- }
- public function address()
- {
- return $this->state(function () {
- return [
- 'address' => $this->faker->address,
- ];
- });
- }
- public function delinquent()
- {
- return $this->state([
- 'account_status' => 'delinquent',
- ]);
- }
- public function configure()
- {
- return $this->afterMaking(function (Model $user) {
- $user->name = $this->faker->name;
- })->afterCreating(function ($user) {
- $user->name = $this->faker->name;
- $user->accounts()->save(factory(\App\Account::class)->make());
- });
- }
-}
-
-?>
diff --git a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/fixture_with_arrow_functions.php.inc b/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/fixture_with_arrow_functions.php.inc
deleted file mode 100644
index cf75909c..00000000
--- a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/fixture_with_arrow_functions.php.inc
+++ /dev/null
@@ -1,51 +0,0 @@
-define(Model::class, fn ($faker) => [
- 'name' => $faker->name,
- 'email' => $faker->unique()->safeEmail,
- 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
-]);
-
-$factory->state(Model::class, 'address', fn ($faker) => [
- 'address' => $faker->address,
-]);
-
-$factory->afterMaking(Model::class, fn (Model $user, $faker) => $user->name = $faker->name);
-
-$factory->afterCreating(Model::class, fn (Model $user, $faker) => $user->name = $faker->name);
-
-?>
------
- $this->faker->name,
- 'email' => $this->faker->unique()->safeEmail,
- 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
- ];
- }
- public function address()
- {
- return $this->state(fn() => [
- 'address' => $this->faker->address,
- ]);
- }
- public function configure()
- {
- return $this->afterMaking(fn (Model $user) => $user->name = $this->faker->name)->afterCreating(fn (Model $user) => $user->name = $this->faker->name);
- }
-}
-
-?>
diff --git a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/multi_definition.php.inc b/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/multi_definition.php.inc
deleted file mode 100644
index 60b93583..00000000
--- a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/multi_definition.php.inc
+++ /dev/null
@@ -1,61 +0,0 @@
-define(User::class, function (\Faker\Generator $faker) {
- return [
- 'name' => $faker->name,
- 'email' => $faker->unique()->safeEmail,
- 'email_verified_at' => now(),
- 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
- 'remember_token' => Str::random(10),
- ];
-});
-
-$factory->define(Account::class, function (\Faker\Generator $faker) {
- return [
- 'account' => Str::random(10),
- ];
-});
-
-?>
------
- $this->faker->name,
- 'email' => $this->faker->unique()->safeEmail,
- 'email_verified_at' => now(),
- 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
- 'remember_token' => Str::random(10),
- ];
- }
-}
-
-class AccountFactory extends \Illuminate\Database\Eloquent\Factories\Factory
-{
- protected $model = Account::class;
- public function definition()
- {
- return [
- 'account' => Str::random(10),
- ];
- }
-}
-
-?>
diff --git a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/skip_reassign_factory.php.inc b/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/skip_reassign_factory.php.inc
deleted file mode 100644
index 11e947c3..00000000
--- a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/skip_reassign_factory.php.inc
+++ /dev/null
@@ -1,23 +0,0 @@
-define(\App\User::class, function (\Faker\Generator $faker) {
- return [];
-});
-
-?>
------
-define(\App\User::class, function (\Faker\Generator $faker) {
- return [];
-});
-
-?>
diff --git a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/without_args.php.inc b/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/without_args.php.inc
deleted file mode 100644
index 9e483649..00000000
--- a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/without_args.php.inc
+++ /dev/null
@@ -1,53 +0,0 @@
-define(Model::class, function () {
- // ...
-});
-
-$factory->state(Model::class, 'address', function () {
- // ...
-});
-
-$factory->afterMaking(Model::class, function (Model $user) {
- // ...
-});
-
-$factory->afterCreating(Model::class, function () {
- // ...
-});
-
-?>
------
-state(function () {
- // ...
- });
- }
- public function configure()
- {
- return $this->afterMaking(function (Model $user) {
- // ...
- })->afterCreating(function () {
- // ...
- });
- }
-}
-
-?>
diff --git a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/without_namespace.php.inc b/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/without_namespace.php.inc
deleted file mode 100644
index e3d23ec1..00000000
--- a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/without_namespace.php.inc
+++ /dev/null
@@ -1,30 +0,0 @@
-define(RectorLaravel\Tests\Rector\Namespace_\FactoryDefinitionRector\Source\Model::class, function ($faker) {
- return [
- 'name' => $faker->name,
- 'email' => $faker->unique()->safeEmail,
- ];
-});
-
-?>
------
- $this->faker->name,
- 'email' => $this->faker->unique()->safeEmail,
- ];
- }
-}
-
-?>
diff --git a/tests/Rector/Namespace_/FactoryDefinitionRector/Source/Model.php b/tests/Rector/Namespace_/FactoryDefinitionRector/Source/Model.php
deleted file mode 100644
index b90ad074..00000000
--- a/tests/Rector/Namespace_/FactoryDefinitionRector/Source/Model.php
+++ /dev/null
@@ -1,7 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(FactoryDefinitionRector::class);
-};
diff --git a/tests/Rector/New_/AddGuardToLoginEventRector/AddGuardToLoginEventRectorTest.php b/tests/Rector/New_/AddGuardToLoginEventRector/AddGuardToLoginEventRectorTest.php
deleted file mode 100644
index f497d7e6..00000000
--- a/tests/Rector/New_/AddGuardToLoginEventRector/AddGuardToLoginEventRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/New_/AddGuardToLoginEventRector/Fixture/fixture.php.inc b/tests/Rector/New_/AddGuardToLoginEventRector/Fixture/fixture.php.inc
deleted file mode 100644
index ea972771..00000000
--- a/tests/Rector/New_/AddGuardToLoginEventRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,32 +0,0 @@
-
------
-
diff --git a/tests/Rector/New_/AddGuardToLoginEventRector/Fixture/skip_already.php.inc b/tests/Rector/New_/AddGuardToLoginEventRector/Fixture/skip_already.php.inc
deleted file mode 100644
index 07844356..00000000
--- a/tests/Rector/New_/AddGuardToLoginEventRector/Fixture/skip_already.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-
------
-
diff --git a/tests/Rector/New_/AddGuardToLoginEventRector/config/configured_rule.php b/tests/Rector/New_/AddGuardToLoginEventRector/config/configured_rule.php
deleted file mode 100644
index e3ab7c6b..00000000
--- a/tests/Rector/New_/AddGuardToLoginEventRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(AddGuardToLoginEventRector::class);
-};
diff --git a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/fixture.php.inc b/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/fixture.php.inc
deleted file mode 100644
index 48a6447d..00000000
--- a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,23 +0,0 @@
-something();
-optional($value)->something(true);
-optional($value)->foo;
-optional(request()->user())->getKey();
-
-?>
------
-something();
-$value?->something(true);
-$value?->foo;
-request()->user()?->getKey();
-
-?>
diff --git a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/skip_callback.php.inc b/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/skip_callback.php.inc
deleted file mode 100644
index 5c29e22b..00000000
--- a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/skip_callback.php.inc
+++ /dev/null
@@ -1,10 +0,0 @@
-something();
diff --git a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/skip_macro_methods.php.inc b/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/skip_macro_methods.php.inc
deleted file mode 100644
index bfcd05da..00000000
--- a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/skip_macro_methods.php.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-present()->something();
-
-?>
------
-present()->something();
-
-?>
diff --git a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/skip_values.php.inc b/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/skip_values.php.inc
deleted file mode 100644
index df26b9f4..00000000
--- a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/skip_values.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-something();
-optional(null)->something();
-optional(5)->something();
-optional(['present' => 'here'])->missing;
-optional((object) ['foo' => 'bar'])->foo;
-optional((object) ['foo' => 'bar'])->bar;
-
-?>
------
-something();
-optional(null)->something();
-optional(5)->something();
-optional(['present' => 'here'])->missing;
-((object) ['foo' => 'bar'])?->foo;
-((object) ['foo' => 'bar'])?->bar;
-
-?>
diff --git a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/OptionalToNullsafeOperatorRectorTest.php b/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/OptionalToNullsafeOperatorRectorTest.php
deleted file mode 100644
index c2be02b6..00000000
--- a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/OptionalToNullsafeOperatorRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Source/SomeClass.php b/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Source/SomeClass.php
deleted file mode 100644
index 2079826d..00000000
--- a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Source/SomeClass.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
- $rectorConfig->ruleWithConfiguration(
- OptionalToNullsafeOperatorRector::class,
- [
- OptionalToNullsafeOperatorRector::EXCLUDE_METHODS => ['present'],
- ],
- );
-};
diff --git a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/fixture.php.inc b/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/fixture.php.inc
deleted file mode 100644
index e8819e31..00000000
--- a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,33 +0,0 @@
- $this->faker->name,
- 'email' => $this->faker->unique()->safeEmail,
- 'another_name' => $this->faker->name(),
- 'another_email' => $this->faker->unique()->safeEmail(),
- ];
- }
-}
-?>
------
- fake()->name,
- 'email' => fake()->unique()->safeEmail,
- 'another_name' => fake()->name(),
- 'another_email' => fake()->unique()->safeEmail(),
- ];
- }
-}
-?>
diff --git a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/skip_already.php.inc b/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/skip_already.php.inc
deleted file mode 100644
index e229948e..00000000
--- a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/skip_already.php.inc
+++ /dev/null
@@ -1,15 +0,0 @@
- fake()->name,
- 'email' => fake()->unique()->safeEmail,
- 'test' => $this->test,
- ];
- }
-}
diff --git a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/skip_other_than_model_factories.php.inc b/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/skip_other_than_model_factories.php.inc
deleted file mode 100644
index 14a3e317..00000000
--- a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/skip_other_than_model_factories.php.inc
+++ /dev/null
@@ -1,12 +0,0 @@
- $this->faker->name,
- 'email' => $this->faker->unique()->safeEmail,
- ];
- }
-}
diff --git a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/skip_spatie_enum_helper.php.inc b/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/skip_spatie_enum_helper.php.inc
deleted file mode 100644
index 29b27edb..00000000
--- a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/skip_spatie_enum_helper.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
- $this->faker->randomEnum(SomeEnum::class),
- ];
- }
-}
diff --git a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/ReplaceFakerInstanceWithHelperRectorTest.php b/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/ReplaceFakerInstanceWithHelperRectorTest.php
deleted file mode 100644
index 99e469d2..00000000
--- a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/ReplaceFakerInstanceWithHelperRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/config/configured_rule.php b/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/config/configured_rule.php
deleted file mode 100644
index 245e8c65..00000000
--- a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(ReplaceFakerInstanceWithHelperRector::class);
-};
diff --git a/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/CarbonSetTestNowToTravelToRectorTest.php b/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/CarbonSetTestNowToTravelToRectorTest.php
deleted file mode 100644
index 4a2b7ba8..00000000
--- a/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/CarbonSetTestNowToTravelToRectorTest.php
+++ /dev/null
@@ -1,34 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/Fixture/in_non_laravel_testcase_class.php.inc b/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/Fixture/in_non_laravel_testcase_class.php.inc
deleted file mode 100644
index ff466cc8..00000000
--- a/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/Fixture/in_non_laravel_testcase_class.php.inc
+++ /dev/null
@@ -1,35 +0,0 @@
-
------
-
diff --git a/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/Fixture/with_carbon_carbon.php.inc b/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/Fixture/with_carbon_carbon.php.inc
deleted file mode 100644
index de6f441d..00000000
--- a/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/Fixture/with_carbon_carbon.php.inc
+++ /dev/null
@@ -1,35 +0,0 @@
-
------
-travelTo('2024-08-11');
- $this->travelTo(Carbon::parse('2024-08-11'));
- }
-}
-
-?>
diff --git a/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/Fixture/with_carbon_carbonimmutable.php.inc b/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/Fixture/with_carbon_carbonimmutable.php.inc
deleted file mode 100644
index 8ed1e9f4..00000000
--- a/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/Fixture/with_carbon_carbonimmutable.php.inc
+++ /dev/null
@@ -1,35 +0,0 @@
-
------
-travelTo('2024-08-11');
- $this->travelTo(CarbonImmutable::parse('2024-08-11'));
- }
-}
-
-?>
diff --git a/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/Fixture/with_illuminate_support_carbon.php.inc b/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/Fixture/with_illuminate_support_carbon.php.inc
deleted file mode 100644
index 2ed85202..00000000
--- a/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/Fixture/with_illuminate_support_carbon.php.inc
+++ /dev/null
@@ -1,35 +0,0 @@
-
------
-travelTo('2024-08-11');
- $this->travelTo(Carbon::parse('2024-08-11'));
- }
-}
-
-?>
diff --git a/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/Fixture/with_no_arguments.php.inc b/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/Fixture/with_no_arguments.php.inc
deleted file mode 100644
index 66936bd7..00000000
--- a/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/Fixture/with_no_arguments.php.inc
+++ /dev/null
@@ -1,33 +0,0 @@
-
------
-travelTo(null);
- }
-}
-
-?>
diff --git a/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/Fixture/with_non_carbon_class.php.inc b/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/Fixture/with_non_carbon_class.php.inc
deleted file mode 100644
index 1602b4f8..00000000
--- a/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/Fixture/with_non_carbon_class.php.inc
+++ /dev/null
@@ -1,37 +0,0 @@
-
------
-
diff --git a/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/config/configured_rule.php b/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/config/configured_rule.php
deleted file mode 100644
index 1296cac3..00000000
--- a/tests/Rector/StaticCall/CarbonSetTestNowToTravelToRector/config/configured_rule.php
+++ /dev/null
@@ -1,11 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
- $rectorConfig->rule(CarbonSetTestNowToTravelToRector::class);
-};
diff --git a/tests/Rector/StaticCall/DispatchToHelperFunctionsRector/DispatchToHelperFunctionsRectorTest.php b/tests/Rector/StaticCall/DispatchToHelperFunctionsRector/DispatchToHelperFunctionsRectorTest.php
deleted file mode 100644
index 23107e7c..00000000
--- a/tests/Rector/StaticCall/DispatchToHelperFunctionsRector/DispatchToHelperFunctionsRectorTest.php
+++ /dev/null
@@ -1,29 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/StaticCall/DispatchToHelperFunctionsRector/Fixture/bus_dispatchable.php.inc b/tests/Rector/StaticCall/DispatchToHelperFunctionsRector/Fixture/bus_dispatchable.php.inc
deleted file mode 100644
index 7eafc966..00000000
--- a/tests/Rector/StaticCall/DispatchToHelperFunctionsRector/Fixture/bus_dispatchable.php.inc
+++ /dev/null
@@ -1,15 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
- $rectorConfig->rule(DispatchToHelperFunctionsRector::class);
-};
diff --git a/tests/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector/EloquentMagicMethodToQueryBuilderRectorTest.php b/tests/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector/EloquentMagicMethodToQueryBuilderRectorTest.php
deleted file mode 100644
index fefff2d2..00000000
--- a/tests/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector/EloquentMagicMethodToQueryBuilderRectorTest.php
+++ /dev/null
@@ -1,36 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector/Fixture/fixture.php.inc b/tests/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector/Fixture/fixture.php.inc
deleted file mode 100644
index cd25aa79..00000000
--- a/tests/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,47 +0,0 @@
-where('xxx', 'xxx')->first();
- $user = User::publicMethodBelongsToQueryBuilder(1);
-
- # not eligible
- $user = User::privateMethodBelongsToQueryBuilder(1);
- $user = User::protectedMethodBelongsToQueryBuilder(1);
- $user = User::publicMethodNotBelongsToQueryBuilder(1);
- $user = User::query()->publicMethodBelongsToEloquentQueryBuilder(1);
- $user = User::query()->publicMethodBelongsToQueryBuilder(1);
- $user = User::staticMethodBelongsToModel(1);
- }
-}
------
-publicMethodBelongsToEloquentQueryBuilder(1)->where('xxx', 'xxx')->first();
- $user = User::query()->publicMethodBelongsToQueryBuilder(1);
-
- # not eligible
- $user = User::privateMethodBelongsToQueryBuilder(1);
- $user = User::protectedMethodBelongsToQueryBuilder(1);
- $user = User::publicMethodNotBelongsToQueryBuilder(1);
- $user = User::query()->publicMethodBelongsToEloquentQueryBuilder(1);
- $user = User::query()->publicMethodBelongsToQueryBuilder(1);
- $user = User::staticMethodBelongsToModel(1);
- }
-}
diff --git a/tests/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector/Fixture/with_exclude_methods.php.inc b/tests/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector/Fixture/with_exclude_methods.php.inc
deleted file mode 100644
index 6203353c..00000000
--- a/tests/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector/Fixture/with_exclude_methods.php.inc
+++ /dev/null
@@ -1,35 +0,0 @@
-publicMethodBelongsToQueryBuilder();
-
- # not eligible
- $user = User::excludablePublicMethodBelongsToEloquentQueryBuilder();
- }
-}
diff --git a/tests/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector/config/configured_rule.php b/tests/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector/config/configured_rule.php
deleted file mode 100644
index c1922a97..00000000
--- a/tests/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector/config/configured_rule.php
+++ /dev/null
@@ -1,18 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
- $rectorConfig->importNames(importDocBlockNames: false);
- $rectorConfig->importShortClasses(false);
- $rectorConfig->ruleWithConfiguration(
- EloquentMagicMethodToQueryBuilderRector::class,
- [
- EloquentMagicMethodToQueryBuilderRector::EXCLUDE_METHODS => ['excludablePublicMethodBelongsToEloquentQueryBuilder'],
- ],
- );
-};
diff --git a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/cache_static_call.php.inc b/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/cache_static_call.php.inc
deleted file mode 100644
index 37dd1884..00000000
--- a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/cache_static_call.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-
------
-
diff --git a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/fixture.php.inc b/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/fixture.php.inc
deleted file mode 100644
index cdbe08fe..00000000
--- a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,61 +0,0 @@
-arrayStore = $arrayStore;
- }
-
- public function run()
- {
- \Illuminate\Support\Facades\Cache::put('key', 'value', 60);
-
- $this->arrayStore->put('key', 'value', 60);
-
- $seconds = 60;
- $this->arrayStore->putMany(['key' => 'value'], $seconds);
- }
-}
-
-?>
------
-arrayStore = $arrayStore;
- }
-
- public function run()
- {
- \Illuminate\Support\Facades\Cache::put('key', 'value', 60 * 60);
-
- $this->arrayStore->put('key', 'value', 60 * 60);
-
- $seconds = 60;
- $this->arrayStore->putMany(['key' => 'value'], $seconds * 60);
- }
-}
-
-?>
diff --git a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/only_one.php.inc b/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/only_one.php.inc
deleted file mode 100644
index 9e82b3a8..00000000
--- a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/only_one.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-
------
-
diff --git a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/remember_cache.php.inc b/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/remember_cache.php.inc
deleted file mode 100644
index cf9686b0..00000000
--- a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/remember_cache.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-remember('key', 'value', 60);
- }
-}
-
-?>
------
-remember('key', 'value', 60 * 60);
- }
-}
-
-?>
diff --git a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/skip_call.php.inc b/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/skip_call.php.inc
deleted file mode 100644
index fd63f735..00000000
--- a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/skip_call.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/config/configured_rule.php b/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/config/configured_rule.php
deleted file mode 100644
index 62824e79..00000000
--- a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(MinutesToSecondsInCacheRector::class);
-};
diff --git a/tests/Rector/StaticCall/Redirect301ToPermanentRedirectRector/Fixture/fixture.php.inc b/tests/Rector/StaticCall/Redirect301ToPermanentRedirectRector/Fixture/fixture.php.inc
deleted file mode 100644
index 5c880be9..00000000
--- a/tests/Rector/StaticCall/Redirect301ToPermanentRedirectRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-
------
-
diff --git a/tests/Rector/StaticCall/Redirect301ToPermanentRedirectRector/Redirect301ToPermanentRedirectRectorTest.php b/tests/Rector/StaticCall/Redirect301ToPermanentRedirectRector/Redirect301ToPermanentRedirectRectorTest.php
deleted file mode 100644
index 02c6d668..00000000
--- a/tests/Rector/StaticCall/Redirect301ToPermanentRedirectRector/Redirect301ToPermanentRedirectRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/StaticCall/Redirect301ToPermanentRedirectRector/config/configured_rule.php b/tests/Rector/StaticCall/Redirect301ToPermanentRedirectRector/config/configured_rule.php
deleted file mode 100644
index e582903f..00000000
--- a/tests/Rector/StaticCall/Redirect301ToPermanentRedirectRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(Redirect301ToPermanentRedirectRector::class);
-};
diff --git a/tests/Rector/StaticCall/ReplaceAssertTimesSendWithAssertSentTimesRector/Fixture/fixture.php.inc b/tests/Rector/StaticCall/ReplaceAssertTimesSendWithAssertSentTimesRector/Fixture/fixture.php.inc
deleted file mode 100644
index 47dc2096..00000000
--- a/tests/Rector/StaticCall/ReplaceAssertTimesSendWithAssertSentTimesRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,16 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/StaticCall/ReplaceAssertTimesSendWithAssertSentTimesRector/config/configured_rule.php b/tests/Rector/StaticCall/ReplaceAssertTimesSendWithAssertSentTimesRector/config/configured_rule.php
deleted file mode 100644
index 46e74b2a..00000000
--- a/tests/Rector/StaticCall/ReplaceAssertTimesSendWithAssertSentTimesRector/config/configured_rule.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
- $rectorConfig->importNames(importDocBlockNames: false);
- $rectorConfig->importShortClasses(false);
- $rectorConfig->rule(ReplaceAssertTimesSendWithAssertSentTimesRector::class);
-};
diff --git a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/fixture.php.inc b/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/fixture.php.inc
deleted file mode 100644
index e2ef8848..00000000
--- a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
- 'required']);
- }
-}
-
-?>
------
-validate(['some_attribute' => 'required']);
- }
-}
-
-?>
diff --git a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/fixture_alias.php.inc b/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/fixture_alias.php.inc
deleted file mode 100644
index a91e26cd..00000000
--- a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/fixture_alias.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
- 'required']);
- }
-}
-
-?>
------
-validate(['some_attribute' => 'required']);
- }
-}
-
-?>
diff --git a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/fixture_without_assignment.php.inc b/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/fixture_without_assignment.php.inc
deleted file mode 100644
index 8976dd2f..00000000
--- a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/fixture_without_assignment.php.inc
+++ /dev/null
@@ -1,35 +0,0 @@
- 'required']);
- request()->validate(['some_attribute' => 'required']);
- request()->get('foo');
- }
-}
-
-?>
------
-validate(['some_attribute' => 'required']);
- $request->validate(['some_attribute' => 'required']);
- $request->get('foo');
- }
-}
-
-?>
diff --git a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/function.php.inc b/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/function.php.inc
deleted file mode 100644
index b8a8e14e..00000000
--- a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/function.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-get('foo');
- }
-}
-
-?>
------
-get('foo');
- }
-}
-
-?>
diff --git a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/function2.php.inc b/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/function2.php.inc
deleted file mode 100644
index 1504c4ed..00000000
--- a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/function2.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-
------
-input('foo');
- }
-}
-
-?>
diff --git a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/skip_function_extends.php.inc b/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/skip_function_extends.php.inc
deleted file mode 100644
index 5a943c8d..00000000
--- a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/skip_function_extends.php.inc
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/skip_function_trait.php.inc b/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/skip_function_trait.php.inc
deleted file mode 100644
index 004251d5..00000000
--- a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/skip_function_trait.php.inc
+++ /dev/null
@@ -1,22 +0,0 @@
-
diff --git a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/RequestStaticValidateToInjectRectorTest.php b/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/RequestStaticValidateToInjectRectorTest.php
deleted file mode 100644
index 130a5fb2..00000000
--- a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/RequestStaticValidateToInjectRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/config/configured_rule.php b/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/config/configured_rule.php
deleted file mode 100644
index 3254b8e2..00000000
--- a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(RequestStaticValidateToInjectRector::class);
-};
diff --git a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/fixture.php.inc b/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/fixture.php.inc
deleted file mode 100644
index ebb8f606..00000000
--- a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,39 +0,0 @@
-options('/users', 'SomeController@index');
-
-?>
------
-options('/users', [\RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source\SomeController::class, 'index']);
-
-?>
diff --git a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/named_route.php.inc b/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/named_route.php.inc
deleted file mode 100644
index fe295bcf..00000000
--- a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/named_route.php.inc
+++ /dev/null
@@ -1,21 +0,0 @@
- 'users.index', 'uses' => 'SomeController@index']);
-Route::get('/users', ['uses' => 'SomeController@index', 'as' => 'users.index']);
-
-?>
------
-name('users.index');
-Route::get('/users', [\RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source\SomeController::class, 'index'])->name('users.index');
-
-?>
diff --git a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/named_route_with_middleware.php.inc b/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/named_route_with_middleware.php.inc
deleted file mode 100644
index 9e30053e..00000000
--- a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/named_route_with_middleware.php.inc
+++ /dev/null
@@ -1,41 +0,0 @@
- 'users.index', 'middleware' => 'auth', 'uses' => 'SomeController@index']);
-Route::get('/users', ['as' => 'users.index', 'uses' => 'SomeController@index', 'middleware' => 'auth']);
-Route::get('/users', ['uses' => 'SomeController@index', 'middleware' => 'auth', 'as' => 'users.index']);
-Route::get('/users', ['uses' => 'SomeController@index', 'as' => 'users.index', 'middleware' => 'auth']);
-Route::get('/users', ['middleware' => 'auth', 'as' => 'users.index', 'uses' => 'SomeController@index']);
-Route::get('/users', ['middleware' => 'auth', 'uses' => 'SomeController@index', 'as' => 'users.index']);
-Route::get('/users', ['as' => 'users.index', 'middleware' => ['auth', 'throttle:20,1'], 'uses' => 'SomeController@index']);
-Route::get('/users', ['as' => 'users.index', 'uses' => 'SomeController@index', 'middleware' => ['auth', 'throttle:20,1']]);
-Route::get('/users', ['uses' => 'SomeController@index', 'as' => 'users.index', 'middleware' => ['auth', 'throttle:20,1']]);
-Route::get('/users', ['uses' => 'SomeController@index', 'middleware' => ['auth', 'throttle:20,1'], 'as' => 'users.index']);
-Route::get('/users', ['middleware' => ['auth', 'throttle:20,1'], 'uses' => 'SomeController@index', 'as' => 'users.index']);
-Route::get('/users', ['middleware' => ['auth', 'throttle:20,1'], 'as' => 'users.index', 'uses' => 'SomeController@index']);
-
-?>
------
-name('users.index')->middleware('auth');
-Route::get('/users', [\RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source\SomeController::class, 'index'])->name('users.index')->middleware('auth');
-Route::get('/users', [\RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source\SomeController::class, 'index'])->name('users.index')->middleware('auth');
-Route::get('/users', [\RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source\SomeController::class, 'index'])->name('users.index')->middleware('auth');
-Route::get('/users', [\RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source\SomeController::class, 'index'])->name('users.index')->middleware('auth');
-Route::get('/users', [\RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source\SomeController::class, 'index'])->name('users.index')->middleware('auth');
-Route::get('/users', [\RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source\SomeController::class, 'index'])->name('users.index')->middleware(['auth', 'throttle:20,1']);
-Route::get('/users', [\RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source\SomeController::class, 'index'])->name('users.index')->middleware(['auth', 'throttle:20,1']);
-Route::get('/users', [\RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source\SomeController::class, 'index'])->name('users.index')->middleware(['auth', 'throttle:20,1']);
-Route::get('/users', [\RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source\SomeController::class, 'index'])->name('users.index')->middleware(['auth', 'throttle:20,1']);
-Route::get('/users', [\RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source\SomeController::class, 'index'])->name('users.index')->middleware(['auth', 'throttle:20,1']);
-Route::get('/users', [\RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source\SomeController::class, 'index'])->name('users.index')->middleware(['auth', 'throttle:20,1']);
-
-?>
diff --git a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/only_array_route.php.inc b/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/only_array_route.php.inc
deleted file mode 100644
index 6c0a80ae..00000000
--- a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/only_array_route.php.inc
+++ /dev/null
@@ -1,21 +0,0 @@
- 'SomeController@index']);
-Route::get('/users', ['uses' => 'SomeController@index']);
-
-?>
------
-
diff --git a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/route_with_middleware.php.inc b/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/route_with_middleware.php.inc
deleted file mode 100644
index ce0d3b98..00000000
--- a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/route_with_middleware.php.inc
+++ /dev/null
@@ -1,25 +0,0 @@
- 'auth', 'uses' => 'SomeController@index']);
-Route::get('/users', ['uses' => 'SomeController@index', 'middleware' => 'auth']);
-Route::get('/users', ['middleware' => ['auth', 'throttle:20,1'], 'uses' => 'SomeController@index']);
-Route::get('/users', ['uses' => 'SomeController@index', 'middleware' => ['auth', 'throttle:20,1']]);
-
-?>
------
-middleware('auth');
-Route::get('/users', [\RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source\SomeController::class, 'index'])->middleware('auth');
-Route::get('/users', [\RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source\SomeController::class, 'index'])->middleware(['auth', 'throttle:20,1']);
-Route::get('/users', [\RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source\SomeController::class, 'index'])->middleware(['auth', 'throttle:20,1']);
-
-?>
diff --git a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/skip_method_not_exists.php.inc b/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/skip_method_not_exists.php.inc
deleted file mode 100644
index 27e24cdf..00000000
--- a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/skip_method_not_exists.php.inc
+++ /dev/null
@@ -1,21 +0,0 @@
-
------
-
diff --git a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/skip_multiple_at.php.inc b/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/skip_multiple_at.php.inc
deleted file mode 100644
index 2125fba1..00000000
--- a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/skip_multiple_at.php.inc
+++ /dev/null
@@ -1,19 +0,0 @@
-
------
-
diff --git a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/using_route_alias.php.inc b/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/using_route_alias.php.inc
deleted file mode 100644
index 59f789fe..00000000
--- a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/using_route_alias.php.inc
+++ /dev/null
@@ -1,19 +0,0 @@
- 'users.index', 'uses' => 'SomeController@index']);
-
-?>
------
-name('users.index');
-
-?>
diff --git a/tests/Rector/StaticCall/RouteActionCallableRector/RouteActionCallableRectorTest.php b/tests/Rector/StaticCall/RouteActionCallableRector/RouteActionCallableRectorTest.php
deleted file mode 100644
index fbdd73f8..00000000
--- a/tests/Rector/StaticCall/RouteActionCallableRector/RouteActionCallableRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/StaticCall/RouteActionCallableRector/Source/SomeController.php b/tests/Rector/StaticCall/RouteActionCallableRector/Source/SomeController.php
deleted file mode 100644
index 406774e0..00000000
--- a/tests/Rector/StaticCall/RouteActionCallableRector/Source/SomeController.php
+++ /dev/null
@@ -1,11 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
- $rectorConfig->ruleWithConfiguration(RouteActionCallableRector::class, [
- RouteActionCallableRector::NAMESPACE => 'RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source',
- ]);
-};
diff --git a/tests/Sets/ArrayAccessToMethodCall/ArrayAccessToMethodCallTest.php b/tests/Sets/ArrayAccessToMethodCall/ArrayAccessToMethodCallTest.php
deleted file mode 100644
index 3b50d4b1..00000000
--- a/tests/Sets/ArrayAccessToMethodCall/ArrayAccessToMethodCallTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Sets/ArrayAccessToMethodCall/Fixture/fixture.php.inc b/tests/Sets/ArrayAccessToMethodCall/Fixture/fixture.php.inc
deleted file mode 100644
index 9a6fc332..00000000
--- a/tests/Sets/ArrayAccessToMethodCall/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-
------
-make(\Illuminate\Contracts\Events\Dispatcher::class);
-
-$config = new \Illuminate\Config\Repository();
-
-$name = $config->get('app.name');
-
-?>
diff --git a/tests/Sets/ArrayAccessToMethodCall/config/configured_rule.php b/tests/Sets/ArrayAccessToMethodCall/config/configured_rule.php
deleted file mode 100644
index 340b27c2..00000000
--- a/tests/Sets/ArrayAccessToMethodCall/config/configured_rule.php
+++ /dev/null
@@ -1,9 +0,0 @@
-import(__DIR__ . '/../../../../config/sets/laravel-arrayaccess-to-method-call.php');
-};
diff --git a/tests/Sets/ContainerStringToFullyQualifiedName/ContainerStringToFullyQualifiedNameTest.php b/tests/Sets/ContainerStringToFullyQualifiedName/ContainerStringToFullyQualifiedNameTest.php
deleted file mode 100644
index 5ac97f77..00000000
--- a/tests/Sets/ContainerStringToFullyQualifiedName/ContainerStringToFullyQualifiedNameTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Sets/ContainerStringToFullyQualifiedName/Fixture/fixture.php.inc b/tests/Sets/ContainerStringToFullyQualifiedName/Fixture/fixture.php.inc
deleted file mode 100644
index 374dbb2a..00000000
--- a/tests/Sets/ContainerStringToFullyQualifiedName/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,59 +0,0 @@
-
------
-
diff --git a/tests/Sets/ContainerStringToFullyQualifiedName/config/configured_rule.php b/tests/Sets/ContainerStringToFullyQualifiedName/config/configured_rule.php
deleted file mode 100644
index d0c72059..00000000
--- a/tests/Sets/ContainerStringToFullyQualifiedName/config/configured_rule.php
+++ /dev/null
@@ -1,9 +0,0 @@
-import(__DIR__ . '/../../../../config/sets/laravel-container-string-to-fully-qualified-name.php');
-};
diff --git a/tests/Sets/Laravel100/Fixture/fixture.php.inc b/tests/Sets/Laravel100/Fixture/fixture.php.inc
deleted file mode 100644
index 9243ec09..00000000
--- a/tests/Sets/Laravel100/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,59 +0,0 @@
- null);
-DispatchableJobClass::dispatchNow(fn () => null);
-DispatchesJobsClass::dispatchNow(fn () => null);
-dispatch_now(fn () => null);
-
-?>
------
- null);
-DispatchableJobClass::dispatchSync(fn () => null);
-DispatchesJobsClass::dispatchSync(fn () => null);
-dispatch_sync(fn () => null);
-
-?>
diff --git a/tests/Sets/Laravel100/Laravel100Test.php b/tests/Sets/Laravel100/Laravel100Test.php
deleted file mode 100644
index de54be7b..00000000
--- a/tests/Sets/Laravel100/Laravel100Test.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Sets/Laravel100/config/configured_rule.php b/tests/Sets/Laravel100/config/configured_rule.php
deleted file mode 100644
index e75ac37c..00000000
--- a/tests/Sets/Laravel100/config/configured_rule.php
+++ /dev/null
@@ -1,9 +0,0 @@
-import(__DIR__ . '/../../../../config/sets/laravel100.php');
-};
diff --git a/tests/Sets/Laravel90/Fixture/application_class_lang_path_new_attribute.php.inc.php.inc b/tests/Sets/Laravel90/Fixture/application_class_lang_path_new_attribute.php.inc.php.inc
deleted file mode 100644
index 752cdd24..00000000
--- a/tests/Sets/Laravel90/Fixture/application_class_lang_path_new_attribute.php.inc.php.inc
+++ /dev/null
@@ -1,39 +0,0 @@
-langPath();
-
-?>
------
-langPath();
-
-?>
diff --git a/tests/Sets/Laravel90/Fixture/application_class_storage_path_new_attribute.php.inc.php.inc b/tests/Sets/Laravel90/Fixture/application_class_storage_path_new_attribute.php.inc.php.inc
deleted file mode 100644
index a417f0c5..00000000
--- a/tests/Sets/Laravel90/Fixture/application_class_storage_path_new_attribute.php.inc.php.inc
+++ /dev/null
@@ -1,39 +0,0 @@
-storagePath();
-
-?>
------
-storagePath();
-
-?>
diff --git a/tests/Sets/Laravel90/Fixture/application_lang_path_new_attribute.php.inc b/tests/Sets/Laravel90/Fixture/application_lang_path_new_attribute.php.inc
deleted file mode 100644
index 2a35bf80..00000000
--- a/tests/Sets/Laravel90/Fixture/application_lang_path_new_attribute.php.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-app->langPath();
- }
-}
-
-?>
diff --git a/tests/Sets/Laravel90/Fixture/application_storage_path_new_attribute.php.inc b/tests/Sets/Laravel90/Fixture/application_storage_path_new_attribute.php.inc
deleted file mode 100644
index e10ed309..00000000
--- a/tests/Sets/Laravel90/Fixture/application_storage_path_new_attribute.php.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-app->storagePath();
- }
-}
-
-?>
diff --git a/tests/Sets/Laravel90/Fixture/exceptions_handler_ignore_with_public_visibility.php.inc b/tests/Sets/Laravel90/Fixture/exceptions_handler_ignore_with_public_visibility.php.inc
deleted file mode 100644
index b4259fcc..00000000
--- a/tests/Sets/Laravel90/Fixture/exceptions_handler_ignore_with_public_visibility.php.inc
+++ /dev/null
@@ -1,29 +0,0 @@
-
------
-
diff --git a/tests/Sets/Laravel90/Fixture/failed_job_provider_interface_new_attribute.php.inc b/tests/Sets/Laravel90/Fixture/failed_job_provider_interface_new_attribute.php.inc
deleted file mode 100644
index 4457fc77..00000000
--- a/tests/Sets/Laravel90/Fixture/failed_job_provider_interface_new_attribute.php.inc
+++ /dev/null
@@ -1,34 +0,0 @@
-flush();
-$provider->flush(10);
-
-?>
diff --git a/tests/Sets/Laravel90/Fixture/method_renames.php.inc b/tests/Sets/Laravel90/Fixture/method_renames.php.inc
deleted file mode 100644
index 5990b104..00000000
--- a/tests/Sets/Laravel90/Fixture/method_renames.php.inc
+++ /dev/null
@@ -1,51 +0,0 @@
-reduceWithKeys(fn () => null);
-(new Collection())->reduceMany(fn () => null);
-
-(new Message())->getSwiftMessage();
-(new Mailable())->withSwiftMessage();
-(new MailMessage())->withSwiftMessage();
-(new Mailer())->getSwiftMailer();
-(new Mailer())->setSwiftMailer();
-(new MailManager())->createTransport();
-
-(new TestResponse())->assertDeleted(null);
-
-?>
------
-reduce(fn () => null);
-(new Collection())->reduceSpread(fn () => null);
-
-(new Message())->getSymfonyMessage();
-(new Mailable())->withSymfonyMessage();
-(new MailMessage())->withSymfonyMessage();
-(new Mailer())->getSymfonyTransport();
-(new Mailer())->setSymfonyTransport();
-(new MailManager())->createSymfonyTransport();
-
-(new TestResponse())->assertModelMissing(null);
-
-?>
diff --git a/tests/Sets/Laravel90/Fixture/model_touch_new_attribute.php.inc b/tests/Sets/Laravel90/Fixture/model_touch_new_attribute.php.inc
deleted file mode 100644
index 9c15d8da..00000000
--- a/tests/Sets/Laravel90/Fixture/model_touch_new_attribute.php.inc
+++ /dev/null
@@ -1,37 +0,0 @@
-touch();
-
-?>
------
-touch();
-
-?>
diff --git a/tests/Sets/Laravel90/Laravel90Test.php b/tests/Sets/Laravel90/Laravel90Test.php
deleted file mode 100644
index 109b353e..00000000
--- a/tests/Sets/Laravel90/Laravel90Test.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Sets/Laravel90/config/configured_rule.php b/tests/Sets/Laravel90/config/configured_rule.php
deleted file mode 100644
index 7ab9d990..00000000
--- a/tests/Sets/Laravel90/config/configured_rule.php
+++ /dev/null
@@ -1,9 +0,0 @@
-import(__DIR__ . '/../../../../config/sets/laravel90.php');
-};
diff --git a/tests/Sets/Livewire30/Fixture/fixture.php.inc b/tests/Sets/Livewire30/Fixture/fixture.php.inc
deleted file mode 100644
index 11028a8c..00000000
--- a/tests/Sets/Livewire30/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,36 +0,0 @@
-
------
-
diff --git a/tests/Sets/Livewire30/Livewire30Test.php b/tests/Sets/Livewire30/Livewire30Test.php
deleted file mode 100644
index 2752ffe0..00000000
--- a/tests/Sets/Livewire30/Livewire30Test.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Sets/Livewire30/config/configured_rule.php b/tests/Sets/Livewire30/config/configured_rule.php
deleted file mode 100644
index deae720e..00000000
--- a/tests/Sets/Livewire30/config/configured_rule.php
+++ /dev/null
@@ -1,9 +0,0 @@
-import(__DIR__ . '/../../../../config/sets/packages/livewire/livewire-30.php');
-};