diff --git a/packages/caching/tests/Detector/ChangedFilesDetectorTest.php b/packages/caching/tests/Detector/ChangedFilesDetectorTest.php index afb3e7cc1ac5..a8015618fddb 100644 --- a/packages/caching/tests/Detector/ChangedFilesDetectorTest.php +++ b/packages/caching/tests/Detector/ChangedFilesDetectorTest.php @@ -71,8 +71,8 @@ public function provideData(): Iterator ]; } - protected function provideConfigFileInfo(): SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config.php'); + return __DIR__ . '/config.php'; } } diff --git a/packages/rector-generator/templates/rules/__package__/tests/Rector/__Category__/__Name__/__Configured__Extra__Name__Test.php.inc b/packages/rector-generator/templates/rules/__package__/tests/Rector/__Category__/__Name__/__Configured__Extra__Name__Test.php.inc index fe5d54fa559a..1560ddcbfede 100644 --- a/packages/rector-generator/templates/rules/__package__/tests/Rector/__Category__/__Name__/__Configured__Extra__Name__Test.php.inc +++ b/packages/rector-generator/templates/rules/__package__/tests/Rector/__Category__/__Name__/__Configured__Extra__Name__Test.php.inc @@ -23,8 +23,8 @@ final class __Name__Test extends AbstractRectorTestCase yield [new \Symplify\SmartFileSystem\SmartFileInfo(__DIR__ . '/Fixture/some_class.php.inc'), '__ExtraFileName__', __DIR__ . '/Source/extra_file.php']; } - protected function provideConfigFileInfo(): ?\Symplify\SmartFileSystem\SmartFileInfo + protected function provideConfigFilePath(): string { - return new \Symplify\SmartFileSystem\SmartFileInfo(__DIR__ . '/configured_rule.php'); + return __DIR__ . '/configured_rule.php'; } } diff --git a/packages/rector-generator/templates/rules/__package__/tests/Rector/__Category__/__Name__/__Configured__Name__Test.php.inc b/packages/rector-generator/templates/rules/__package__/tests/Rector/__Category__/__Name__/__Configured__Name__Test.php.inc index 397e316d8343..f8be0954c238 100644 --- a/packages/rector-generator/templates/rules/__package__/tests/Rector/__Category__/__Name__/__Configured__Name__Test.php.inc +++ b/packages/rector-generator/templates/rules/__package__/tests/Rector/__Category__/__Name__/__Configured__Name__Test.php.inc @@ -21,8 +21,8 @@ final class __Name__Test extends AbstractRectorTestCase return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?\Symplify\SmartFileSystem\SmartFileInfo + protected function provideConfigFilePath(): string { - return new \Symplify\SmartFileSystem\SmartFileInfo(__DIR__ . '/configured_rule.php'); + return __DIR__ . '/configured_rule.php'; } } diff --git a/packages/rector-generator/tests/RectorGenerator/Fixture/expected/rules/moderate-package/tests/Rector/MethodCall/WhateverRector/WhateverRectorTest.php.inc b/packages/rector-generator/tests/RectorGenerator/Fixture/expected/rules/moderate-package/tests/Rector/MethodCall/WhateverRector/WhateverRectorTest.php.inc index 89ccc774c23a..47e49f64e8f8 100644 --- a/packages/rector-generator/tests/RectorGenerator/Fixture/expected/rules/moderate-package/tests/Rector/MethodCall/WhateverRector/WhateverRectorTest.php.inc +++ b/packages/rector-generator/tests/RectorGenerator/Fixture/expected/rules/moderate-package/tests/Rector/MethodCall/WhateverRector/WhateverRectorTest.php.inc @@ -21,8 +21,8 @@ final class WhateverRectorTest extends AbstractRectorTestCase return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?\Symplify\SmartFileSystem\SmartFileInfo + protected function provideConfigFilePath(): string { - return new \Symplify\SmartFileSystem\SmartFileInfo(__DIR__ . '/configured_rule.php'); + return __DIR__ . '/configured_rule.php'; } } diff --git a/packages/rector-generator/tests/RectorGenerator/Fixture/expected_3rd_party/utils/rector/tests/Rector/MethodCall/WhateverRector/WhateverRectorTest.php.inc b/packages/rector-generator/tests/RectorGenerator/Fixture/expected_3rd_party/utils/rector/tests/Rector/MethodCall/WhateverRector/WhateverRectorTest.php.inc index e6d6589e1826..a0b298a72d0a 100644 --- a/packages/rector-generator/tests/RectorGenerator/Fixture/expected_3rd_party/utils/rector/tests/Rector/MethodCall/WhateverRector/WhateverRectorTest.php.inc +++ b/packages/rector-generator/tests/RectorGenerator/Fixture/expected_3rd_party/utils/rector/tests/Rector/MethodCall/WhateverRector/WhateverRectorTest.php.inc @@ -21,8 +21,8 @@ final class WhateverRectorTest extends AbstractRectorTestCase return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?\Symplify\SmartFileSystem\SmartFileInfo + protected function provideConfigFilePath(): string { - return new \Symplify\SmartFileSystem\SmartFileInfo(__DIR__ . '/configured_rule.php'); + return __DIR__ . '/configured_rule.php'; } } diff --git a/packages/testing/src/PHPUnit/AbstractRectorTestCase.php b/packages/testing/src/PHPUnit/AbstractRectorTestCase.php index 1c184bcd4d45..895499b05189 100644 --- a/packages/testing/src/PHPUnit/AbstractRectorTestCase.php +++ b/packages/testing/src/PHPUnit/AbstractRectorTestCase.php @@ -107,8 +107,9 @@ protected function setUp(): void { $this->initializeDependencies(); - if ($this->provideConfigFileInfo() !== null) { - $configFileInfos = self::$rectorConfigsResolver->resolveFromConfigFileInfo($this->provideConfigFileInfo()); + if ($this->provideConfigFilePath() !== '') { + $configFileInfo = new SmartFileInfo($this->provideConfigFilePath()); + $configFileInfos = self::$rectorConfigsResolver->resolveFromConfigFileInfo($configFileInfo); $this->bootKernelWithConfigsAndStaticCache(RectorKernel::class, $configFileInfos); @@ -143,10 +144,10 @@ protected function getRectorClass(): string return ''; } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { // can be implemented - return null; + return ''; } protected function yieldFilesFromDirectory(string $directory, string $suffix = '*.php.inc'): Iterator diff --git a/rules/autodiscovery/tests/Rector/FileNode/MoveInterfacesToContractNamespaceDirectoryRector/MoveInterfacesToContractNamespaceDirectoryRectorTest.php b/rules/autodiscovery/tests/Rector/FileNode/MoveInterfacesToContractNamespaceDirectoryRector/MoveInterfacesToContractNamespaceDirectoryRectorTest.php index a1ca8338ab53..ace4793d3d82 100644 --- a/rules/autodiscovery/tests/Rector/FileNode/MoveInterfacesToContractNamespaceDirectoryRector/MoveInterfacesToContractNamespaceDirectoryRectorTest.php +++ b/rules/autodiscovery/tests/Rector/FileNode/MoveInterfacesToContractNamespaceDirectoryRector/MoveInterfacesToContractNamespaceDirectoryRectorTest.php @@ -106,8 +106,8 @@ public function provideData(): Iterator yield [new SmartFileInfo(__DIR__ . '/Source/Contract/Foo/KeepThisSomeInterface.php'), null]; } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/some_config.php'); + return __DIR__ . '/config/some_config.php'; } } diff --git a/rules/autodiscovery/tests/Rector/FileNode/MoveServicesBySuffixToDirectoryRector/MoveServicesBySuffixToDirectoryRectorTest.php b/rules/autodiscovery/tests/Rector/FileNode/MoveServicesBySuffixToDirectoryRector/MoveServicesBySuffixToDirectoryRectorTest.php index dc868e20c653..b3a747c27717 100644 --- a/rules/autodiscovery/tests/Rector/FileNode/MoveServicesBySuffixToDirectoryRector/MoveServicesBySuffixToDirectoryRectorTest.php +++ b/rules/autodiscovery/tests/Rector/FileNode/MoveServicesBySuffixToDirectoryRector/MoveServicesBySuffixToDirectoryRectorTest.php @@ -76,8 +76,8 @@ public function provideData(): Iterator ]; } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/autodiscovery/tests/Rector/FileNode/MoveValueObjectsToValueObjectDirectoryRector/MoveValueObjectsToValueObjectDirectoryRectorTest.php b/rules/autodiscovery/tests/Rector/FileNode/MoveValueObjectsToValueObjectDirectoryRector/MoveValueObjectsToValueObjectDirectoryRectorTest.php index 4db40e6cc53d..3f72de8e8225 100644 --- a/rules/autodiscovery/tests/Rector/FileNode/MoveValueObjectsToValueObjectDirectoryRector/MoveValueObjectsToValueObjectDirectoryRectorTest.php +++ b/rules/autodiscovery/tests/Rector/FileNode/MoveValueObjectsToValueObjectDirectoryRector/MoveValueObjectsToValueObjectDirectoryRectorTest.php @@ -60,8 +60,8 @@ public function provideData(): Iterator yield [new SmartFileInfo(__DIR__ . '/Source/Utils/SomeSuffixedTest.php.inc'), null]; } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/cakephp/tests/Rector/MethodCall/ArrayToFluentCallRector/ArrayToFluentCallRectorTest.php b/rules/cakephp/tests/Rector/MethodCall/ArrayToFluentCallRector/ArrayToFluentCallRectorTest.php index 8f571f509402..6f5b50959b13 100644 --- a/rules/cakephp/tests/Rector/MethodCall/ArrayToFluentCallRector/ArrayToFluentCallRectorTest.php +++ b/rules/cakephp/tests/Rector/MethodCall/ArrayToFluentCallRector/ArrayToFluentCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/cakephp/tests/Rector/MethodCall/ModalToGetSetRector/ModalToGetSetRectorTest.php b/rules/cakephp/tests/Rector/MethodCall/ModalToGetSetRector/ModalToGetSetRectorTest.php index 22e8028d1988..ab1624f92038 100644 --- a/rules/cakephp/tests/Rector/MethodCall/ModalToGetSetRector/ModalToGetSetRectorTest.php +++ b/rules/cakephp/tests/Rector/MethodCall/ModalToGetSetRector/ModalToGetSetRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/cakephp/tests/Rector/MethodCall/RenameMethodCallBasedOnParameterRector/RenameMethodCallBasedOnParameterRectorTest.php b/rules/cakephp/tests/Rector/MethodCall/RenameMethodCallBasedOnParameterRector/RenameMethodCallBasedOnParameterRectorTest.php index 117b1e7424a7..f19bcd56b31f 100644 --- a/rules/cakephp/tests/Rector/MethodCall/RenameMethodCallBasedOnParameterRector/RenameMethodCallBasedOnParameterRectorTest.php +++ b/rules/cakephp/tests/Rector/MethodCall/RenameMethodCallBasedOnParameterRector/RenameMethodCallBasedOnParameterRectorTest.php @@ -26,8 +26,8 @@ public function provideData(): iterable return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/code-quality/tests/Rector/Class_/CompleteDynamicPropertiesRector/CompleteDynamicPropertiesRectorTest.php b/rules/code-quality/tests/Rector/Class_/CompleteDynamicPropertiesRector/CompleteDynamicPropertiesRectorTest.php index 2e9b6b559dec..19d2c26f598d 100644 --- a/rules/code-quality/tests/Rector/Class_/CompleteDynamicPropertiesRector/CompleteDynamicPropertiesRectorTest.php +++ b/rules/code-quality/tests/Rector/Class_/CompleteDynamicPropertiesRector/CompleteDynamicPropertiesRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/pre_union_types.php'); + return __DIR__ . '/config/pre_union_types.php'; } } diff --git a/rules/coding-style/tests/Rector/ClassMethod/MakeInheritedMethodVisibilitySameAsParentRector/SkipParentConstructOverrideInPHP72Test.php b/rules/coding-style/tests/Rector/ClassMethod/MakeInheritedMethodVisibilitySameAsParentRector/SkipParentConstructOverrideInPHP72Test.php index 87d15cce2f17..ab933a626e95 100644 --- a/rules/coding-style/tests/Rector/ClassMethod/MakeInheritedMethodVisibilitySameAsParentRector/SkipParentConstructOverrideInPHP72Test.php +++ b/rules/coding-style/tests/Rector/ClassMethod/MakeInheritedMethodVisibilitySameAsParentRector/SkipParentConstructOverrideInPHP72Test.php @@ -26,8 +26,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureForPhp72'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/php_72.php'); + return __DIR__ . '/config/php_72.php'; } } diff --git a/rules/coding-style/tests/Rector/ClassMethod/ReturnArrayClassMethodToYieldRector/ReturnArrayClassMethodToYieldRectorTest.php b/rules/coding-style/tests/Rector/ClassMethod/ReturnArrayClassMethodToYieldRector/ReturnArrayClassMethodToYieldRectorTest.php index 48d405f3e55a..829b7bc636fb 100644 --- a/rules/coding-style/tests/Rector/ClassMethod/ReturnArrayClassMethodToYieldRector/ReturnArrayClassMethodToYieldRectorTest.php +++ b/rules/coding-style/tests/Rector/ClassMethod/ReturnArrayClassMethodToYieldRector/ReturnArrayClassMethodToYieldRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/coding-style/tests/Rector/ClassMethod/YieldClassMethodToArrayClassMethodRector/YieldClassMethodToArrayClassMethodRectorTest.php b/rules/coding-style/tests/Rector/ClassMethod/YieldClassMethodToArrayClassMethodRector/YieldClassMethodToArrayClassMethodRectorTest.php index ef04ce230846..dbd31189e81b 100644 --- a/rules/coding-style/tests/Rector/ClassMethod/YieldClassMethodToArrayClassMethodRector/YieldClassMethodToArrayClassMethodRectorTest.php +++ b/rules/coding-style/tests/Rector/ClassMethod/YieldClassMethodToArrayClassMethodRector/YieldClassMethodToArrayClassMethodRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/coding-style/tests/Rector/FuncCall/FunctionCallToConstantRector/FunctionCallToConstantRectorTest.php b/rules/coding-style/tests/Rector/FuncCall/FunctionCallToConstantRector/FunctionCallToConstantRectorTest.php index d69c935c0ee2..cfb549b34910 100644 --- a/rules/coding-style/tests/Rector/FuncCall/FunctionCallToConstantRector/FunctionCallToConstantRectorTest.php +++ b/rules/coding-style/tests/Rector/FuncCall/FunctionCallToConstantRector/FunctionCallToConstantRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/coding-style/tests/Rector/FuncCall/PreslashSimpleFunctionRector/AutoImportTest.php b/rules/coding-style/tests/Rector/FuncCall/PreslashSimpleFunctionRector/AutoImportTest.php index 03975b9c9257..9dabc7f76db7 100644 --- a/rules/coding-style/tests/Rector/FuncCall/PreslashSimpleFunctionRector/AutoImportTest.php +++ b/rules/coding-style/tests/Rector/FuncCall/PreslashSimpleFunctionRector/AutoImportTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureAutoImport'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/auto_import.php'); + return __DIR__ . '/config/auto_import.php'; } } diff --git a/rules/coding-style/tests/Rector/MethodCall/PreferThisOrSelfMethodCallRector/PreferThisOrSelfMethodCallRectorTest.php b/rules/coding-style/tests/Rector/MethodCall/PreferThisOrSelfMethodCallRector/PreferThisOrSelfMethodCallRectorTest.php index 442cecdc9880..38f7fd668957 100644 --- a/rules/coding-style/tests/Rector/MethodCall/PreferThisOrSelfMethodCallRector/PreferThisOrSelfMethodCallRectorTest.php +++ b/rules/coding-style/tests/Rector/MethodCall/PreferThisOrSelfMethodCallRector/PreferThisOrSelfMethodCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/DocBlockRectorTest.php b/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/DocBlockRectorTest.php index 30e0c4551846..8047d109fc84 100644 --- a/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/DocBlockRectorTest.php +++ b/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/DocBlockRectorTest.php @@ -26,8 +26,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureDocBlock'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/import_doc_block_config.php'); + return __DIR__ . '/config/import_doc_block_config.php'; } } diff --git a/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/ImportFullyQualifiedNamesRectorTest.php b/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/ImportFullyQualifiedNamesRectorTest.php index 69f581d6480d..bf4a25c4eb2d 100644 --- a/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/ImportFullyQualifiedNamesRectorTest.php +++ b/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/ImportFullyQualifiedNamesRectorTest.php @@ -38,8 +38,8 @@ public function provideDataGeneric(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureGeneric'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/import_config.php'); + return __DIR__ . '/config/import_config.php'; } } diff --git a/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/ImportRootNamespaceClassesDisabledTest.php b/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/ImportRootNamespaceClassesDisabledTest.php index 210fa394477d..a9b964e1257c 100644 --- a/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/ImportRootNamespaceClassesDisabledTest.php +++ b/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/ImportRootNamespaceClassesDisabledTest.php @@ -29,8 +29,8 @@ public function provideData(): iterable return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureRoot'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/not_import_short_classes.php'); + return __DIR__ . '/config/not_import_short_classes.php'; } } diff --git a/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/NonNamespacedTest.php b/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/NonNamespacedTest.php index e16e2175afc3..75eb93d48023 100644 --- a/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/NonNamespacedTest.php +++ b/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/NonNamespacedTest.php @@ -26,8 +26,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureNonNamespaced'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/import_config.php'); + return __DIR__ . '/config/import_config.php'; } } diff --git a/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/Php80Test.php b/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/Php80Test.php index 34d20245dcbb..ea8e17994d9b 100644 --- a/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/Php80Test.php +++ b/rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/Php80Test.php @@ -27,8 +27,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureAttributes'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/import_config.php'); + return __DIR__ . '/config/import_config.php'; } } diff --git a/rules/dead-code/tests/Rector/ClassConst/RemoveUnusedClassConstantRector/OpenSourceRectorTest.php b/rules/dead-code/tests/Rector/ClassConst/RemoveUnusedClassConstantRector/OpenSourceRectorTest.php index 3ff9e73c901a..7bb09005ce5f 100644 --- a/rules/dead-code/tests/Rector/ClassConst/RemoveUnusedClassConstantRector/OpenSourceRectorTest.php +++ b/rules/dead-code/tests/Rector/ClassConst/RemoveUnusedClassConstantRector/OpenSourceRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureOpenSource'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/project_open_source.php'); + return __DIR__ . '/config/project_open_source.php'; } } diff --git a/rules/dead-code/tests/Rector/ClassMethod/RemoveDeadConstructorRector/Php80Test.php b/rules/dead-code/tests/Rector/ClassMethod/RemoveDeadConstructorRector/Php80Test.php index b7e2f022be19..6a9523b03135 100644 --- a/rules/dead-code/tests/Rector/ClassMethod/RemoveDeadConstructorRector/Php80Test.php +++ b/rules/dead-code/tests/Rector/ClassMethod/RemoveDeadConstructorRector/Php80Test.php @@ -24,8 +24,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp80'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/property_promotion.php'); + return __DIR__ . '/config/property_promotion.php'; } } diff --git a/rules/dead-code/tests/Rector/ClassMethod/RemoveUnusedParameterRector/OpenSourceRectorTest.php b/rules/dead-code/tests/Rector/ClassMethod/RemoveUnusedParameterRector/OpenSourceRectorTest.php index 44544cc1429e..0b40cdea41c5 100644 --- a/rules/dead-code/tests/Rector/ClassMethod/RemoveUnusedParameterRector/OpenSourceRectorTest.php +++ b/rules/dead-code/tests/Rector/ClassMethod/RemoveUnusedParameterRector/OpenSourceRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureOpenSource'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/project_open_source.php'); + return __DIR__ . '/config/project_open_source.php'; } } diff --git a/rules/dead-code/tests/Rector/ClassMethod/RemoveUnusedPublicMethodRector/OpenSourceRectorTest.php b/rules/dead-code/tests/Rector/ClassMethod/RemoveUnusedPublicMethodRector/OpenSourceRectorTest.php index 2120dffbac17..97dd8e46dc84 100644 --- a/rules/dead-code/tests/Rector/ClassMethod/RemoveUnusedPublicMethodRector/OpenSourceRectorTest.php +++ b/rules/dead-code/tests/Rector/ClassMethod/RemoveUnusedPublicMethodRector/OpenSourceRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureOpenSource'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/projet_open_source.php'); + return __DIR__ . '/config/projet_open_source.php'; } } diff --git a/rules/dead-code/tests/Rector/PropertyProperty/RemoveNullPropertyInitializationRector/TypedPropertiesRemoveNullPropertyInitializationRectorTest.php b/rules/dead-code/tests/Rector/PropertyProperty/RemoveNullPropertyInitializationRector/TypedPropertiesRemoveNullPropertyInitializationRectorTest.php index 7d8c427a9e48..539090720477 100644 --- a/rules/dead-code/tests/Rector/PropertyProperty/RemoveNullPropertyInitializationRector/TypedPropertiesRemoveNullPropertyInitializationRectorTest.php +++ b/rules/dead-code/tests/Rector/PropertyProperty/RemoveNullPropertyInitializationRector/TypedPropertiesRemoveNullPropertyInitializationRectorTest.php @@ -24,8 +24,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureTypedProperties'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/typed_properties.php'); + return __DIR__ . '/config/typed_properties.php'; } } diff --git a/rules/dead-doc-block/tests/Rector/ClassLike/RemoveAnnotationRector/RemoveAnnotationRectorTest.php b/rules/dead-doc-block/tests/Rector/ClassLike/RemoveAnnotationRector/RemoveAnnotationRectorTest.php index 0b8144a4f414..c36bd3cbc31e 100644 --- a/rules/dead-doc-block/tests/Rector/ClassLike/RemoveAnnotationRector/RemoveAnnotationRectorTest.php +++ b/rules/dead-doc-block/tests/Rector/ClassLike/RemoveAnnotationRector/RemoveAnnotationRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/dependency-injection/tests/Rector/Class_/ActionInjectionToConstructorInjectionRector/ActionInjectionToConstructorInjectionRectorTest.php b/rules/dependency-injection/tests/Rector/Class_/ActionInjectionToConstructorInjectionRector/ActionInjectionToConstructorInjectionRectorTest.php index 862eb1298684..744445a3d4a9 100644 --- a/rules/dependency-injection/tests/Rector/Class_/ActionInjectionToConstructorInjectionRector/ActionInjectionToConstructorInjectionRectorTest.php +++ b/rules/dependency-injection/tests/Rector/Class_/ActionInjectionToConstructorInjectionRector/ActionInjectionToConstructorInjectionRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/dependency-injection/tests/Rector/Class_/MultiParentingToAbstractDependencyRector/MultiParentingToAbstractDependencyRectorTest.php b/rules/dependency-injection/tests/Rector/Class_/MultiParentingToAbstractDependencyRector/MultiParentingToAbstractDependencyRectorTest.php index 970079ee08d8..d7a0f447aa7c 100644 --- a/rules/dependency-injection/tests/Rector/Class_/MultiParentingToAbstractDependencyRector/MultiParentingToAbstractDependencyRectorTest.php +++ b/rules/dependency-injection/tests/Rector/Class_/MultiParentingToAbstractDependencyRector/MultiParentingToAbstractDependencyRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/nette_config.php'); + return __DIR__ . '/config/nette_config.php'; } } diff --git a/rules/dependency-injection/tests/Rector/Class_/MultiParentingToAbstractDependencyRector/SymfonyMultiParentingToAbstractDependencyRectorTest.php b/rules/dependency-injection/tests/Rector/Class_/MultiParentingToAbstractDependencyRector/SymfonyMultiParentingToAbstractDependencyRectorTest.php index 06729e0f8d23..cdfd6e9f9581 100644 --- a/rules/dependency-injection/tests/Rector/Class_/MultiParentingToAbstractDependencyRector/SymfonyMultiParentingToAbstractDependencyRectorTest.php +++ b/rules/dependency-injection/tests/Rector/Class_/MultiParentingToAbstractDependencyRector/SymfonyMultiParentingToAbstractDependencyRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureSymfony'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/symfony_config.php'); + return __DIR__ . '/config/symfony_config.php'; } } diff --git a/rules/doctrine-code-quality/tests/Rector/DoctrineRepositoryAsService/DoctrineRepositoryAsServiceTest.php b/rules/doctrine-code-quality/tests/Rector/DoctrineRepositoryAsService/DoctrineRepositoryAsServiceTest.php index de5c08fae14b..6bfefe3c5830 100644 --- a/rules/doctrine-code-quality/tests/Rector/DoctrineRepositoryAsService/DoctrineRepositoryAsServiceTest.php +++ b/rules/doctrine-code-quality/tests/Rector/DoctrineRepositoryAsService/DoctrineRepositoryAsServiceTest.php @@ -28,8 +28,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/doctrine/tests/Rector/Class_/AddEntityIdByConditionRector/AddEntityIdByConditionRectorTest.php b/rules/doctrine/tests/Rector/Class_/AddEntityIdByConditionRector/AddEntityIdByConditionRectorTest.php index db440c97c3df..5c28daf3ebe0 100644 --- a/rules/doctrine/tests/Rector/Class_/AddEntityIdByConditionRector/AddEntityIdByConditionRectorTest.php +++ b/rules/doctrine/tests/Rector/Class_/AddEntityIdByConditionRector/AddEntityIdByConditionRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/doctrine/tests/Rector/MethodCall/EntityAliasToClassConstantReferenceRector/EntityAliasToClassConstantReferenceRectorTest.php b/rules/doctrine/tests/Rector/MethodCall/EntityAliasToClassConstantReferenceRector/EntityAliasToClassConstantReferenceRectorTest.php index 85ebcc5a628c..7c1fa8430164 100644 --- a/rules/doctrine/tests/Rector/MethodCall/EntityAliasToClassConstantReferenceRector/EntityAliasToClassConstantReferenceRectorTest.php +++ b/rules/doctrine/tests/Rector/MethodCall/EntityAliasToClassConstantReferenceRector/EntityAliasToClassConstantReferenceRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/downgrade-php70/tests/Rector/FunctionLike/DowngradeTypeParamDeclarationRector/DowngradeTypeParamDeclarationRectorTest.php b/rules/downgrade-php70/tests/Rector/FunctionLike/DowngradeTypeParamDeclarationRector/DowngradeTypeParamDeclarationRectorTest.php index 4d3766a4268d..940765d6fe23 100644 --- a/rules/downgrade-php70/tests/Rector/FunctionLike/DowngradeTypeParamDeclarationRector/DowngradeTypeParamDeclarationRectorTest.php +++ b/rules/downgrade-php70/tests/Rector/FunctionLike/DowngradeTypeParamDeclarationRector/DowngradeTypeParamDeclarationRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/php_70.php'); + return __DIR__ . '/config/php_70.php'; } } diff --git a/rules/downgrade-php70/tests/Rector/FunctionLike/DowngradeTypeReturnDeclarationRector/DowngradeTypeReturnDeclarationRectorTest.php b/rules/downgrade-php70/tests/Rector/FunctionLike/DowngradeTypeReturnDeclarationRector/DowngradeTypeReturnDeclarationRectorTest.php index 7ec10e88055c..96b9f1ff9544 100644 --- a/rules/downgrade-php70/tests/Rector/FunctionLike/DowngradeTypeReturnDeclarationRector/DowngradeTypeReturnDeclarationRectorTest.php +++ b/rules/downgrade-php70/tests/Rector/FunctionLike/DowngradeTypeReturnDeclarationRector/DowngradeTypeReturnDeclarationRectorTest.php @@ -24,8 +24,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/php_70.php'); + return __DIR__ . '/config/php_70.php'; } } diff --git a/rules/downgrade-php71/tests/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector/DowngradePipeToMultiCatchExceptionRectorTest.php b/rules/downgrade-php71/tests/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector/DowngradePipeToMultiCatchExceptionRectorTest.php index 94ae231524ec..adee3ab179da 100644 --- a/rules/downgrade-php71/tests/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector/DowngradePipeToMultiCatchExceptionRectorTest.php +++ b/rules/downgrade-php71/tests/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector/DowngradePipeToMultiCatchExceptionRectorTest.php @@ -24,8 +24,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/generic/tests/Rector/ClassMethod/AddMethodParentCallRector/AddMethodParentCallRectorTest.php b/rules/generic/tests/Rector/ClassMethod/AddMethodParentCallRector/AddMethodParentCallRectorTest.php index 534bcc737153..e404affa0ff5 100644 --- a/rules/generic/tests/Rector/ClassMethod/AddMethodParentCallRector/AddMethodParentCallRectorTest.php +++ b/rules/generic/tests/Rector/ClassMethod/AddMethodParentCallRector/AddMethodParentCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/generic/tests/Rector/ClassMethod/ArgumentAdderRector/ArgumentAdderRectorTest.php b/rules/generic/tests/Rector/ClassMethod/ArgumentAdderRector/ArgumentAdderRectorTest.php index 4b161946d9e3..528ee1917e21 100644 --- a/rules/generic/tests/Rector/ClassMethod/ArgumentAdderRector/ArgumentAdderRectorTest.php +++ b/rules/generic/tests/Rector/ClassMethod/ArgumentAdderRector/ArgumentAdderRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/generic/tests/Rector/ClassMethod/ArgumentDefaultValueReplacerRector/ArgumentDefaultValueReplacerRectorTest.php b/rules/generic/tests/Rector/ClassMethod/ArgumentDefaultValueReplacerRector/ArgumentDefaultValueReplacerRectorTest.php index c44c6c519196..e6b946ab43df 100644 --- a/rules/generic/tests/Rector/ClassMethod/ArgumentDefaultValueReplacerRector/ArgumentDefaultValueReplacerRectorTest.php +++ b/rules/generic/tests/Rector/ClassMethod/ArgumentDefaultValueReplacerRector/ArgumentDefaultValueReplacerRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/generic/tests/Rector/ClassMethod/ArgumentDefaultValueReplacerRector/Symfony28Test.php b/rules/generic/tests/Rector/ClassMethod/ArgumentDefaultValueReplacerRector/Symfony28Test.php index ab34f354b627..6d500f7c039e 100644 --- a/rules/generic/tests/Rector/ClassMethod/ArgumentDefaultValueReplacerRector/Symfony28Test.php +++ b/rules/generic/tests/Rector/ClassMethod/ArgumentDefaultValueReplacerRector/Symfony28Test.php @@ -26,8 +26,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureSymfony28'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/../../../../../../config/set/symfony28.php'); + return __DIR__ . '/../../../../../../config/set/symfony28.php'; } } diff --git a/rules/generic/tests/Rector/ClassMethod/NormalToFluentRector/NormalToFluentRectorTest.php b/rules/generic/tests/Rector/ClassMethod/NormalToFluentRector/NormalToFluentRectorTest.php index a4b20ce970ef..e255a235944d 100644 --- a/rules/generic/tests/Rector/ClassMethod/NormalToFluentRector/NormalToFluentRectorTest.php +++ b/rules/generic/tests/Rector/ClassMethod/NormalToFluentRector/NormalToFluentRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/generic/tests/Rector/ClassMethod/SingleToManyMethodRector/SingleToManyMethodRectorTest.php b/rules/generic/tests/Rector/ClassMethod/SingleToManyMethodRector/SingleToManyMethodRectorTest.php index 4588e7e92f47..3f06804a3444 100644 --- a/rules/generic/tests/Rector/ClassMethod/SingleToManyMethodRector/SingleToManyMethodRectorTest.php +++ b/rules/generic/tests/Rector/ClassMethod/SingleToManyMethodRector/SingleToManyMethodRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/generic/tests/Rector/ClassMethod/WrapReturnRector/WrapReturnRectorTest.php b/rules/generic/tests/Rector/ClassMethod/WrapReturnRector/WrapReturnRectorTest.php index 101dbf8484bb..be0185c1fb42 100644 --- a/rules/generic/tests/Rector/ClassMethod/WrapReturnRector/WrapReturnRectorTest.php +++ b/rules/generic/tests/Rector/ClassMethod/WrapReturnRector/WrapReturnRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/generic/tests/Rector/Class_/AddInterfaceByTraitRector/AddInterfaceByTraitRectorTest.php b/rules/generic/tests/Rector/Class_/AddInterfaceByTraitRector/AddInterfaceByTraitRectorTest.php index 26b729ca310a..1b4c380d104a 100644 --- a/rules/generic/tests/Rector/Class_/AddInterfaceByTraitRector/AddInterfaceByTraitRectorTest.php +++ b/rules/generic/tests/Rector/Class_/AddInterfaceByTraitRector/AddInterfaceByTraitRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/generic/tests/Rector/Class_/AddPropertyByParentRector/AddPropertyByParentRectorTest.php b/rules/generic/tests/Rector/Class_/AddPropertyByParentRector/AddPropertyByParentRectorTest.php index 696b753a9739..c53b85395875 100644 --- a/rules/generic/tests/Rector/Class_/AddPropertyByParentRector/AddPropertyByParentRectorTest.php +++ b/rules/generic/tests/Rector/Class_/AddPropertyByParentRector/AddPropertyByParentRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/generic/tests/Rector/Class_/MergeInterfacesRector/MergeInterfacesRectorTest.php b/rules/generic/tests/Rector/Class_/MergeInterfacesRector/MergeInterfacesRectorTest.php index 9bcccf1a3b1a..970976e213e6 100644 --- a/rules/generic/tests/Rector/Class_/MergeInterfacesRector/MergeInterfacesRectorTest.php +++ b/rules/generic/tests/Rector/Class_/MergeInterfacesRector/MergeInterfacesRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/generic/tests/Rector/FuncCall/SwapFuncCallArgumentsRector/SwapFuncCallArgumentsRectorTest.php b/rules/generic/tests/Rector/FuncCall/SwapFuncCallArgumentsRector/SwapFuncCallArgumentsRectorTest.php index f8e921ec3d1a..774426ec8ca3 100644 --- a/rules/generic/tests/Rector/FuncCall/SwapFuncCallArgumentsRector/SwapFuncCallArgumentsRectorTest.php +++ b/rules/generic/tests/Rector/FuncCall/SwapFuncCallArgumentsRector/SwapFuncCallArgumentsRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/generic/tests/Rector/Property/InjectAnnotationClassRector/InjectAnnotationClassRectorTest.php b/rules/generic/tests/Rector/Property/InjectAnnotationClassRector/InjectAnnotationClassRectorTest.php index 66488e150859..b910136d8a60 100644 --- a/rules/generic/tests/Rector/Property/InjectAnnotationClassRector/InjectAnnotationClassRectorTest.php +++ b/rules/generic/tests/Rector/Property/InjectAnnotationClassRector/InjectAnnotationClassRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/generic/tests/Rector/RectorOrder/RectorOrderTest.php b/rules/generic/tests/Rector/RectorOrder/RectorOrderTest.php index 18fe401695aa..a3d2deb1be9e 100644 --- a/rules/generic/tests/Rector/RectorOrder/RectorOrderTest.php +++ b/rules/generic/tests/Rector/RectorOrder/RectorOrderTest.php @@ -26,8 +26,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/legacy/tests/Rector/FileWithoutNamespace/AddTopIncludeRector/AddTopIncludeRectorTest.php b/rules/legacy/tests/Rector/FileWithoutNamespace/AddTopIncludeRector/AddTopIncludeRectorTest.php index 58047ed974f1..29621a6103d7 100644 --- a/rules/legacy/tests/Rector/FileWithoutNamespace/AddTopIncludeRector/AddTopIncludeRectorTest.php +++ b/rules/legacy/tests/Rector/FileWithoutNamespace/AddTopIncludeRector/AddTopIncludeRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/mysql-to-mysqli/tests/SetTest.php b/rules/mysql-to-mysqli/tests/SetTest.php index f4a63356f971..4d999ad3c631 100644 --- a/rules/mysql-to-mysqli/tests/SetTest.php +++ b/rules/mysql-to-mysqli/tests/SetTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/../../../config/set/mysql-to-mysqli.php'); + return __DIR__ . '/../../../config/set/mysql-to-mysqli.php'; } } diff --git a/rules/naming/tests/Rector/Class_/RenamePropertyToMatchTypeRector/Php80Test.php b/rules/naming/tests/Rector/Class_/RenamePropertyToMatchTypeRector/Php80Test.php index cba67432449f..245471f996a6 100644 --- a/rules/naming/tests/Rector/Class_/RenamePropertyToMatchTypeRector/Php80Test.php +++ b/rules/naming/tests/Rector/Class_/RenamePropertyToMatchTypeRector/Php80Test.php @@ -26,8 +26,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp80'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/property_promotion.php'); + return __DIR__ . '/config/property_promotion.php'; } } diff --git a/rules/nette-code-quality/tests/Rector/Assign/MakeGetComponentAssignAnnotatedRector/AutoImportTest.php b/rules/nette-code-quality/tests/Rector/Assign/MakeGetComponentAssignAnnotatedRector/AutoImportTest.php index 472258dd6442..845439e99ceb 100644 --- a/rules/nette-code-quality/tests/Rector/Assign/MakeGetComponentAssignAnnotatedRector/AutoImportTest.php +++ b/rules/nette-code-quality/tests/Rector/Assign/MakeGetComponentAssignAnnotatedRector/AutoImportTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureAutoImport'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/auto_import.php'); + return __DIR__ . '/config/auto_import.php'; } } diff --git a/rules/nette-tester-to-phpunit/tests/Rector/Class_/NetteTesterClassToPHPUnitClassRector/NetteTesterPHPUnitRectorTest.php b/rules/nette-tester-to-phpunit/tests/Rector/Class_/NetteTesterClassToPHPUnitClassRector/NetteTesterPHPUnitRectorTest.php index 0f369050a2ff..9ad6699e00e3 100644 --- a/rules/nette-tester-to-phpunit/tests/Rector/Class_/NetteTesterClassToPHPUnitClassRector/NetteTesterPHPUnitRectorTest.php +++ b/rules/nette-tester-to-phpunit/tests/Rector/Class_/NetteTesterClassToPHPUnitClassRector/NetteTesterPHPUnitRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/php-spec-to-phpunit/tests/Rector/Variable/PhpSpecToPHPUnitRector/PhpSpecToPHPUnitRectorTest.php b/rules/php-spec-to-phpunit/tests/Rector/Variable/PhpSpecToPHPUnitRector/PhpSpecToPHPUnitRectorTest.php index b5a5a467cc27..15927226c316 100644 --- a/rules/php-spec-to-phpunit/tests/Rector/Variable/PhpSpecToPHPUnitRector/PhpSpecToPHPUnitRectorTest.php +++ b/rules/php-spec-to-phpunit/tests/Rector/Variable/PhpSpecToPHPUnitRector/PhpSpecToPHPUnitRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/php55/tests/Rector/String_/StringClassNameToClassConstantRector/ImportClassNameRectorTest.php b/rules/php55/tests/Rector/String_/StringClassNameToClassConstantRector/ImportClassNameRectorTest.php index 27e8633b44eb..fdbdb83c4e18 100644 --- a/rules/php55/tests/Rector/String_/StringClassNameToClassConstantRector/ImportClassNameRectorTest.php +++ b/rules/php55/tests/Rector/String_/StringClassNameToClassConstantRector/ImportClassNameRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureImport'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/import_config.php'); + return __DIR__ . '/config/import_config.php'; } } diff --git a/rules/php71/tests/Rector/FuncCall/CountOnNullRector/CountOnNullRectorTest.php b/rules/php71/tests/Rector/FuncCall/CountOnNullRector/CountOnNullRectorTest.php index f6c9ae82dae2..46f4397b2ebb 100644 --- a/rules/php71/tests/Rector/FuncCall/CountOnNullRector/CountOnNullRectorTest.php +++ b/rules/php71/tests/Rector/FuncCall/CountOnNullRector/CountOnNullRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/php_71.php'); + return __DIR__ . '/config/php_71.php'; } } diff --git a/rules/php71/tests/Rector/FuncCall/CountOnNullRector/CountOnNullRectorWithPHP73Test.php b/rules/php71/tests/Rector/FuncCall/CountOnNullRector/CountOnNullRectorWithPHP73Test.php index 4a17fffcd764..ffb69277c768 100644 --- a/rules/php71/tests/Rector/FuncCall/CountOnNullRector/CountOnNullRectorWithPHP73Test.php +++ b/rules/php71/tests/Rector/FuncCall/CountOnNullRector/CountOnNullRectorWithPHP73Test.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureForPhp73'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/is_countable.php'); + return __DIR__ . '/config/is_countable.php'; } } diff --git a/rules/php71/tests/Rector/Name/ReservedObjectRector/ReservedObjectRectorTest.php b/rules/php71/tests/Rector/Name/ReservedObjectRector/ReservedObjectRectorTest.php index c4b5066ac4be..37505fb672bb 100644 --- a/rules/php71/tests/Rector/Name/ReservedObjectRector/ReservedObjectRectorTest.php +++ b/rules/php71/tests/Rector/Name/ReservedObjectRector/ReservedObjectRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/php72/tests/Rector/FuncCall/GetClassOnNullRector/PostImportTest.php b/rules/php72/tests/Rector/FuncCall/GetClassOnNullRector/PostImportTest.php index 7154cec28073..be4bc35c2b8e 100644 --- a/rules/php72/tests/Rector/FuncCall/GetClassOnNullRector/PostImportTest.php +++ b/rules/php72/tests/Rector/FuncCall/GetClassOnNullRector/PostImportTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePostImport'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/auto_import.php'); + return __DIR__ . '/config/auto_import.php'; } } diff --git a/rules/php73/tests/Rector/BinaryOr/IsCountableRector/PolyfillRectorTest.php b/rules/php73/tests/Rector/BinaryOr/IsCountableRector/PolyfillRectorTest.php index add9a331a8bf..0c6011ba8f8f 100644 --- a/rules/php73/tests/Rector/BinaryOr/IsCountableRector/PolyfillRectorTest.php +++ b/rules/php73/tests/Rector/BinaryOr/IsCountableRector/PolyfillRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureWithPolyfill'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/polyfill_config.php'); + return __DIR__ . '/config/polyfill_config.php'; } } diff --git a/rules/php74/tests/Rector/Function_/ReservedFnFunctionRector/ReservedFnFunctionRectorTest.php b/rules/php74/tests/Rector/Function_/ReservedFnFunctionRector/ReservedFnFunctionRectorTest.php index 1bbc508aa470..791e85f59ce6 100644 --- a/rules/php74/tests/Rector/Function_/ReservedFnFunctionRector/ReservedFnFunctionRectorTest.php +++ b/rules/php74/tests/Rector/Function_/ReservedFnFunctionRector/ReservedFnFunctionRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/php74/tests/Rector/LNumber/AddLiteralSeparatorToNumberRector/AddLiteralSeparatorToNumberRectorTest.php b/rules/php74/tests/Rector/LNumber/AddLiteralSeparatorToNumberRector/AddLiteralSeparatorToNumberRectorTest.php index 8e81144913dd..bb8aaad4ba78 100644 --- a/rules/php74/tests/Rector/LNumber/AddLiteralSeparatorToNumberRector/AddLiteralSeparatorToNumberRectorTest.php +++ b/rules/php74/tests/Rector/LNumber/AddLiteralSeparatorToNumberRector/AddLiteralSeparatorToNumberRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/php74/tests/Rector/Property/TypedPropertyRector/ClassLikeTypesOnlyTest.php b/rules/php74/tests/Rector/Property/TypedPropertyRector/ClassLikeTypesOnlyTest.php index 6490206ad062..b7bbb70d3edf 100644 --- a/rules/php74/tests/Rector/Property/TypedPropertyRector/ClassLikeTypesOnlyTest.php +++ b/rules/php74/tests/Rector/Property/TypedPropertyRector/ClassLikeTypesOnlyTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureClassLikeTypeOnly'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/class_types_only.php'); + return __DIR__ . '/config/class_types_only.php'; } } diff --git a/rules/php74/tests/Rector/Property/TypedPropertyRector/DoctrineTypedPropertyRectorTest.php b/rules/php74/tests/Rector/Property/TypedPropertyRector/DoctrineTypedPropertyRectorTest.php index e3c78eab5ef9..439cd234a748 100644 --- a/rules/php74/tests/Rector/Property/TypedPropertyRector/DoctrineTypedPropertyRectorTest.php +++ b/rules/php74/tests/Rector/Property/TypedPropertyRector/DoctrineTypedPropertyRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureDoctrine'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/php74/tests/Rector/Property/TypedPropertyRector/ImportedTest.php b/rules/php74/tests/Rector/Property/TypedPropertyRector/ImportedTest.php index c87a4b85411d..960502d507bf 100644 --- a/rules/php74/tests/Rector/Property/TypedPropertyRector/ImportedTest.php +++ b/rules/php74/tests/Rector/Property/TypedPropertyRector/ImportedTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureImported'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/imported_type.php'); + return __DIR__ . '/config/imported_type.php'; } } diff --git a/rules/php74/tests/Rector/Property/TypedPropertyRector/TypedPropertyRectorTest.php b/rules/php74/tests/Rector/Property/TypedPropertyRector/TypedPropertyRectorTest.php index cdfecae1b692..63c83036bcde 100644 --- a/rules/php74/tests/Rector/Property/TypedPropertyRector/TypedPropertyRectorTest.php +++ b/rules/php74/tests/Rector/Property/TypedPropertyRector/TypedPropertyRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/php80/tests/Rector/Class_/AnnotationToAttributeRector/AutoImportedAnnotationToAttributeRectorTest.php b/rules/php80/tests/Rector/Class_/AnnotationToAttributeRector/AutoImportedAnnotationToAttributeRectorTest.php index a8394b43fbbb..024809c6f656 100644 --- a/rules/php80/tests/Rector/Class_/AnnotationToAttributeRector/AutoImportedAnnotationToAttributeRectorTest.php +++ b/rules/php80/tests/Rector/Class_/AnnotationToAttributeRector/AutoImportedAnnotationToAttributeRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureAutoImported'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/auto_import.php'); + return __DIR__ . '/config/auto_import.php'; } } diff --git a/rules/phpunit/tests/Rector/Class_/ArrayArgumentToDataProviderRector/ArrayArgumentToDataProviderRectorTest.php b/rules/phpunit/tests/Rector/Class_/ArrayArgumentToDataProviderRector/ArrayArgumentToDataProviderRectorTest.php index 6ba4821192a3..2e0b6f1abe30 100644 --- a/rules/phpunit/tests/Rector/Class_/ArrayArgumentToDataProviderRector/ArrayArgumentToDataProviderRectorTest.php +++ b/rules/phpunit/tests/Rector/Class_/ArrayArgumentToDataProviderRector/ArrayArgumentToDataProviderRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/privatization/tests/Rector/ClassMethod/MakeOnlyUsedByChildrenProtectedRector/OpenSourceRectorTest.php b/rules/privatization/tests/Rector/ClassMethod/MakeOnlyUsedByChildrenProtectedRector/OpenSourceRectorTest.php index cda776dd40a8..291866a8e2fb 100644 --- a/rules/privatization/tests/Rector/ClassMethod/MakeOnlyUsedByChildrenProtectedRector/OpenSourceRectorTest.php +++ b/rules/privatization/tests/Rector/ClassMethod/MakeOnlyUsedByChildrenProtectedRector/OpenSourceRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureOpenSource'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/privatization/tests/Rector/MethodCall/ReplaceStringWithClassConstantRector/ReplaceStringWithClassConstantRectorTest.php b/rules/privatization/tests/Rector/MethodCall/ReplaceStringWithClassConstantRector/ReplaceStringWithClassConstantRectorTest.php index 8758e45bac4a..2c009baf4d9f 100644 --- a/rules/privatization/tests/Rector/MethodCall/ReplaceStringWithClassConstantRector/ReplaceStringWithClassConstantRectorTest.php +++ b/rules/privatization/tests/Rector/MethodCall/ReplaceStringWithClassConstantRector/ReplaceStringWithClassConstantRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_config.php'); + return __DIR__ . '/config/configured_config.php'; } } diff --git a/rules/privatization/tests/Rector/Property/PrivatizeLocalPropertyToPrivatePropertyRector/OpenSourceRectorTest.php b/rules/privatization/tests/Rector/Property/PrivatizeLocalPropertyToPrivatePropertyRector/OpenSourceRectorTest.php index 9665adb9bd9e..fdc8f3559ba2 100644 --- a/rules/privatization/tests/Rector/Property/PrivatizeLocalPropertyToPrivatePropertyRector/OpenSourceRectorTest.php +++ b/rules/privatization/tests/Rector/Property/PrivatizeLocalPropertyToPrivatePropertyRector/OpenSourceRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureOpenSource'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/fixture_open_source.php'); + return __DIR__ . '/config/fixture_open_source.php'; } } diff --git a/rules/psr4/tests/Rector/FileWithoutNamespace/NormalizeNamespaceByPSR4ComposerAutoloadRector/NormalizeNamespaceByPSR4ComposerAutoloadRectorTest.php b/rules/psr4/tests/Rector/FileWithoutNamespace/NormalizeNamespaceByPSR4ComposerAutoloadRector/NormalizeNamespaceByPSR4ComposerAutoloadRectorTest.php index e738237a22f1..2684d35febcb 100644 --- a/rules/psr4/tests/Rector/FileWithoutNamespace/NormalizeNamespaceByPSR4ComposerAutoloadRector/NormalizeNamespaceByPSR4ComposerAutoloadRectorTest.php +++ b/rules/psr4/tests/Rector/FileWithoutNamespace/NormalizeNamespaceByPSR4ComposerAutoloadRector/NormalizeNamespaceByPSR4ComposerAutoloadRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/normalize_namespace_without_namespace_config.php'); + return __DIR__ . '/config/normalize_namespace_without_namespace_config.php'; } } diff --git a/rules/removing-static/tests/Rector/Class_/DesiredClassTypeToDynamicRector/DesiredClassTypeToDynamicRectorTest.php b/rules/removing-static/tests/Rector/Class_/DesiredClassTypeToDynamicRector/DesiredClassTypeToDynamicRectorTest.php index f3a8befd5e93..b1bf5d583857 100644 --- a/rules/removing-static/tests/Rector/Class_/DesiredClassTypeToDynamicRector/DesiredClassTypeToDynamicRectorTest.php +++ b/rules/removing-static/tests/Rector/Class_/DesiredClassTypeToDynamicRector/DesiredClassTypeToDynamicRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/some_config.php'); + return __DIR__ . '/config/some_config.php'; } } diff --git a/rules/removing-static/tests/Rector/Class_/PHPUnitStaticToKernelTestCaseGetRector/PHPUnitStaticToKernelTestCaseGetRectorTest.php b/rules/removing-static/tests/Rector/Class_/PHPUnitStaticToKernelTestCaseGetRector/PHPUnitStaticToKernelTestCaseGetRectorTest.php index 34ead9c7c902..70d3adc832a6 100644 --- a/rules/removing-static/tests/Rector/Class_/PHPUnitStaticToKernelTestCaseGetRector/PHPUnitStaticToKernelTestCaseGetRectorTest.php +++ b/rules/removing-static/tests/Rector/Class_/PHPUnitStaticToKernelTestCaseGetRector/PHPUnitStaticToKernelTestCaseGetRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/removing-static/tests/Rector/Class_/PassFactoryToEntityRector/PassFactoryToEntityRectorTest.php b/rules/removing-static/tests/Rector/Class_/PassFactoryToEntityRector/PassFactoryToEntityRectorTest.php index 67f5b92b4e21..441aacebd024 100644 --- a/rules/removing-static/tests/Rector/Class_/PassFactoryToEntityRector/PassFactoryToEntityRectorTest.php +++ b/rules/removing-static/tests/Rector/Class_/PassFactoryToEntityRector/PassFactoryToEntityRectorTest.php @@ -32,8 +32,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureWithMultipleArguments'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/removing-static/tests/Rector/Class_/StaticTypeToSetterInjectionRector/StaticTypeToSetterInjectionRectorTest.php b/rules/removing-static/tests/Rector/Class_/StaticTypeToSetterInjectionRector/StaticTypeToSetterInjectionRectorTest.php index be8251c56065..6319c3facda7 100644 --- a/rules/removing-static/tests/Rector/Class_/StaticTypeToSetterInjectionRector/StaticTypeToSetterInjectionRectorTest.php +++ b/rules/removing-static/tests/Rector/Class_/StaticTypeToSetterInjectionRector/StaticTypeToSetterInjectionRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/removing-static/tests/Rector/Property/DesiredPropertyClassMethodTypeToDynamicRector/DesiredPropertyClassMethodTypeToDynamicRectorTest.php b/rules/removing-static/tests/Rector/Property/DesiredPropertyClassMethodTypeToDynamicRector/DesiredPropertyClassMethodTypeToDynamicRectorTest.php index eeabec621aee..c2c762f60a4c 100644 --- a/rules/removing-static/tests/Rector/Property/DesiredPropertyClassMethodTypeToDynamicRector/DesiredPropertyClassMethodTypeToDynamicRectorTest.php +++ b/rules/removing-static/tests/Rector/Property/DesiredPropertyClassMethodTypeToDynamicRector/DesiredPropertyClassMethodTypeToDynamicRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/some_config.php'); + return __DIR__ . '/config/some_config.php'; } } diff --git a/rules/removing-static/tests/Rector/StaticCall/DesiredStaticCallTypeToDynamicRector/DesiredStaticCallTypeToDynamicRectorTest.php b/rules/removing-static/tests/Rector/StaticCall/DesiredStaticCallTypeToDynamicRector/DesiredStaticCallTypeToDynamicRectorTest.php index d4ce0cb22a01..fb9026b44bfa 100644 --- a/rules/removing-static/tests/Rector/StaticCall/DesiredStaticCallTypeToDynamicRector/DesiredStaticCallTypeToDynamicRectorTest.php +++ b/rules/removing-static/tests/Rector/StaticCall/DesiredStaticCallTypeToDynamicRector/DesiredStaticCallTypeToDynamicRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/some_config.php'); + return __DIR__ . '/config/some_config.php'; } } diff --git a/rules/removing-static/tests/Rector/StaticPropertyFetch/DesiredStaticPropertyFetchTypeToDynamicRector/DesiredStaticPropertyFetchTypeToDynamicRectorTest.php b/rules/removing-static/tests/Rector/StaticPropertyFetch/DesiredStaticPropertyFetchTypeToDynamicRector/DesiredStaticPropertyFetchTypeToDynamicRectorTest.php index 18e42c9a5949..d4956f186871 100644 --- a/rules/removing-static/tests/Rector/StaticPropertyFetch/DesiredStaticPropertyFetchTypeToDynamicRector/DesiredStaticPropertyFetchTypeToDynamicRectorTest.php +++ b/rules/removing-static/tests/Rector/StaticPropertyFetch/DesiredStaticPropertyFetchTypeToDynamicRector/DesiredStaticPropertyFetchTypeToDynamicRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/some_config.php'); + return __DIR__ . '/config/some_config.php'; } } diff --git a/rules/removing/tests/Rector/ClassMethod/ArgumentRemoverRector/ArgumentRemoverRectorTest.php b/rules/removing/tests/Rector/ClassMethod/ArgumentRemoverRector/ArgumentRemoverRectorTest.php index ac42746726ad..e039539119c3 100644 --- a/rules/removing/tests/Rector/ClassMethod/ArgumentRemoverRector/ArgumentRemoverRectorTest.php +++ b/rules/removing/tests/Rector/ClassMethod/ArgumentRemoverRector/ArgumentRemoverRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/removing/tests/Rector/Class_/RemoveInterfacesRector/RemoveInterfacesRectorTest.php b/rules/removing/tests/Rector/Class_/RemoveInterfacesRector/RemoveInterfacesRectorTest.php index 2978ec85e9d2..ae3a0396aae2 100644 --- a/rules/removing/tests/Rector/Class_/RemoveInterfacesRector/RemoveInterfacesRectorTest.php +++ b/rules/removing/tests/Rector/Class_/RemoveInterfacesRector/RemoveInterfacesRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/removing/tests/Rector/Class_/RemoveParentRector/RemoveParentRectorTest.php b/rules/removing/tests/Rector/Class_/RemoveParentRector/RemoveParentRectorTest.php index 85cb49e955a4..5a005fd83a4a 100644 --- a/rules/removing/tests/Rector/Class_/RemoveParentRector/RemoveParentRectorTest.php +++ b/rules/removing/tests/Rector/Class_/RemoveParentRector/RemoveParentRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/removing/tests/Rector/Class_/RemoveTraitRector/RemoveTraitRectorTest.php b/rules/removing/tests/Rector/Class_/RemoveTraitRector/RemoveTraitRectorTest.php index e431a8590579..20527f70cf99 100644 --- a/rules/removing/tests/Rector/Class_/RemoveTraitRector/RemoveTraitRectorTest.php +++ b/rules/removing/tests/Rector/Class_/RemoveTraitRector/RemoveTraitRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/removing/tests/Rector/FuncCall/RemoveFuncCallArgRector/RemoveFuncCallArgRectorTest.php b/rules/removing/tests/Rector/FuncCall/RemoveFuncCallArgRector/RemoveFuncCallArgRectorTest.php index b6d515d4b471..c1b02da99169 100644 --- a/rules/removing/tests/Rector/FuncCall/RemoveFuncCallArgRector/RemoveFuncCallArgRectorTest.php +++ b/rules/removing/tests/Rector/FuncCall/RemoveFuncCallArgRector/RemoveFuncCallArgRectorTest.php @@ -27,8 +27,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/removing/tests/Rector/FuncCall/RemoveFuncCallRector/RemoveFuncCallRectorTest.php b/rules/removing/tests/Rector/FuncCall/RemoveFuncCallRector/RemoveFuncCallRectorTest.php index cbd82121826b..b9fb1300c27a 100644 --- a/rules/removing/tests/Rector/FuncCall/RemoveFuncCallRector/RemoveFuncCallRectorTest.php +++ b/rules/removing/tests/Rector/FuncCall/RemoveFuncCallRector/RemoveFuncCallRectorTest.php @@ -27,8 +27,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/renaming/tests/Rector/ClassConstFetch/RenameClassConstFetchRector/RenameClassConstFetchRectorTest.php b/rules/renaming/tests/Rector/ClassConstFetch/RenameClassConstFetchRector/RenameClassConstFetchRectorTest.php index 4d428919efd7..ce6597e82ecb 100644 --- a/rules/renaming/tests/Rector/ClassConstFetch/RenameClassConstFetchRector/RenameClassConstFetchRectorTest.php +++ b/rules/renaming/tests/Rector/ClassConstFetch/RenameClassConstFetchRector/RenameClassConstFetchRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/renaming/tests/Rector/ClassMethod/RenameAnnotationRector/RenameAnnotationRectorTest.php b/rules/renaming/tests/Rector/ClassMethod/RenameAnnotationRector/RenameAnnotationRectorTest.php index 4ccc8398dc4a..7593caeba7a2 100644 --- a/rules/renaming/tests/Rector/ClassMethod/RenameAnnotationRector/RenameAnnotationRectorTest.php +++ b/rules/renaming/tests/Rector/ClassMethod/RenameAnnotationRector/RenameAnnotationRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/renaming/tests/Rector/ConstFetch/RenameConstantRector/RenameConstantRectorTest.php b/rules/renaming/tests/Rector/ConstFetch/RenameConstantRector/RenameConstantRectorTest.php index 5d816d361713..c65a96163ae9 100644 --- a/rules/renaming/tests/Rector/ConstFetch/RenameConstantRector/RenameConstantRectorTest.php +++ b/rules/renaming/tests/Rector/ConstFetch/RenameConstantRector/RenameConstantRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/renaming/tests/Rector/FileWithoutNamespace/PseudoNamespaceToNamespaceRector/PseudoNamespaceToNamespaceRectorTest.php b/rules/renaming/tests/Rector/FileWithoutNamespace/PseudoNamespaceToNamespaceRector/PseudoNamespaceToNamespaceRectorTest.php index 2e93a02a809b..6605456adb16 100644 --- a/rules/renaming/tests/Rector/FileWithoutNamespace/PseudoNamespaceToNamespaceRector/PseudoNamespaceToNamespaceRectorTest.php +++ b/rules/renaming/tests/Rector/FileWithoutNamespace/PseudoNamespaceToNamespaceRector/PseudoNamespaceToNamespaceRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/renaming/tests/Rector/FuncCall/RenameFunctionRector/RenameFunctionRectorTest.php b/rules/renaming/tests/Rector/FuncCall/RenameFunctionRector/RenameFunctionRectorTest.php index fddefe04fd59..79642a8e5901 100644 --- a/rules/renaming/tests/Rector/FuncCall/RenameFunctionRector/RenameFunctionRectorTest.php +++ b/rules/renaming/tests/Rector/FuncCall/RenameFunctionRector/RenameFunctionRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/renaming/tests/Rector/FuncCall/RenameFunctionRector/config/configured_rule.php b/rules/renaming/tests/Rector/FuncCall/RenameFunctionRector/config/configured_rule.php index f087efbdde08..19b1734fa4a5 100644 --- a/rules/renaming/tests/Rector/FuncCall/RenameFunctionRector/config/configured_rule.php +++ b/rules/renaming/tests/Rector/FuncCall/RenameFunctionRector/config/configured_rule.php @@ -5,10 +5,11 @@ return static function (ContainerConfigurator $containerConfigurator): void { $services = $containerConfigurator->services(); - $services->set(RenameFunctionRector::class)->call('configure', [[ - RenameFunctionRector::OLD_FUNCTION_TO_NEW_FUNCTION => [ - 'view' => 'Laravel\Templating\render', - 'sprintf' => 'Safe\sprintf', - ], - ]]); + $services->set(RenameFunctionRector::class) + ->call('configure', [[ + RenameFunctionRector::OLD_FUNCTION_TO_NEW_FUNCTION => [ + 'view' => 'Laravel\Templating\render', + 'sprintf' => 'Safe\sprintf', + ], + ]]); }; diff --git a/rules/renaming/tests/Rector/MethodCall/RenameMethodRector/RenameMethodRectorTest.php b/rules/renaming/tests/Rector/MethodCall/RenameMethodRector/RenameMethodRectorTest.php index b5ab66cffa87..f1e6d0130808 100644 --- a/rules/renaming/tests/Rector/MethodCall/RenameMethodRector/RenameMethodRectorTest.php +++ b/rules/renaming/tests/Rector/MethodCall/RenameMethodRector/RenameMethodRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/renaming/tests/Rector/Name/RenameClassRector/AutoImportNamesParameter74Test.php b/rules/renaming/tests/Rector/Name/RenameClassRector/AutoImportNamesParameter74Test.php index f4624c6d68dc..87ca3b867082 100644 --- a/rules/renaming/tests/Rector/Name/RenameClassRector/AutoImportNamesParameter74Test.php +++ b/rules/renaming/tests/Rector/Name/RenameClassRector/AutoImportNamesParameter74Test.php @@ -27,8 +27,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureAutoImportNames74'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/auto_import_names.php'); + return __DIR__ . '/config/auto_import_names.php'; } } diff --git a/rules/renaming/tests/Rector/Name/RenameClassRector/AutoImportNamesParameterTest.php b/rules/renaming/tests/Rector/Name/RenameClassRector/AutoImportNamesParameterTest.php index ad9de79bff2a..199babeea392 100644 --- a/rules/renaming/tests/Rector/Name/RenameClassRector/AutoImportNamesParameterTest.php +++ b/rules/renaming/tests/Rector/Name/RenameClassRector/AutoImportNamesParameterTest.php @@ -26,8 +26,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureAutoImportNames'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/auto_import_names.php'); + return __DIR__ . '/config/auto_import_names.php'; } } diff --git a/rules/renaming/tests/Rector/Name/RenameClassRector/RenameClassRectorTest.php b/rules/renaming/tests/Rector/Name/RenameClassRector/RenameClassRectorTest.php index 272212ff0d16..eb01d64f63ca 100644 --- a/rules/renaming/tests/Rector/Name/RenameClassRector/RenameClassRectorTest.php +++ b/rules/renaming/tests/Rector/Name/RenameClassRector/RenameClassRectorTest.php @@ -32,8 +32,8 @@ public function testClassNameDuplication(): void $this->doTestFileInfo($fixtureFileInfo); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/renaming/tests/Rector/Name/RenameClassRector/RenameNonPhpTest.php b/rules/renaming/tests/Rector/Name/RenameClassRector/RenameNonPhpTest.php index c3d50984227c..a7c729165d4c 100644 --- a/rules/renaming/tests/Rector/Name/RenameClassRector/RenameNonPhpTest.php +++ b/rules/renaming/tests/Rector/Name/RenameClassRector/RenameNonPhpTest.php @@ -27,8 +27,8 @@ public function provideData(): Iterator ); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/non_php_config.php'); + return __DIR__ . '/config/non_php_config.php'; } } diff --git a/rules/renaming/tests/Rector/Namespace_/RenameNamespaceRector/RenameNamespaceRectorTest.php b/rules/renaming/tests/Rector/Namespace_/RenameNamespaceRector/RenameNamespaceRectorTest.php index cb752555c398..234939730dfd 100644 --- a/rules/renaming/tests/Rector/Namespace_/RenameNamespaceRector/RenameNamespaceRectorTest.php +++ b/rules/renaming/tests/Rector/Namespace_/RenameNamespaceRector/RenameNamespaceRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/renaming/tests/Rector/PropertyFetch/RenamePropertyRector/RenamePropertyRectorTest.php b/rules/renaming/tests/Rector/PropertyFetch/RenamePropertyRector/RenamePropertyRectorTest.php index 9b2a5999ddcc..a818fb61b101 100644 --- a/rules/renaming/tests/Rector/PropertyFetch/RenamePropertyRector/RenamePropertyRectorTest.php +++ b/rules/renaming/tests/Rector/PropertyFetch/RenamePropertyRector/RenamePropertyRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/renaming/tests/Rector/StaticCall/RenameStaticMethodRector/RenameStaticMethodRectorTest.php b/rules/renaming/tests/Rector/StaticCall/RenameStaticMethodRector/RenameStaticMethodRectorTest.php index 660a0c360c98..69259b6e5b5f 100644 --- a/rules/renaming/tests/Rector/StaticCall/RenameStaticMethodRector/RenameStaticMethodRectorTest.php +++ b/rules/renaming/tests/Rector/StaticCall/RenameStaticMethodRector/RenameStaticMethodRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/renaming/tests/Rector/String_/RenameStringRector/RenameStringRectorTest.php b/rules/renaming/tests/Rector/String_/RenameStringRector/RenameStringRectorTest.php index 5dc04c1c7712..29b09d8367af 100644 --- a/rules/renaming/tests/Rector/String_/RenameStringRector/RenameStringRectorTest.php +++ b/rules/renaming/tests/Rector/String_/RenameStringRector/RenameStringRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/restoration/tests/Rector/ClassMethod/InferParamFromClassMethodReturnRector/InferParamFromClassMethodReturnRectorTest.php b/rules/restoration/tests/Rector/ClassMethod/InferParamFromClassMethodReturnRector/InferParamFromClassMethodReturnRectorTest.php index d61d22ce5ff6..9de2e7bb6f9b 100644 --- a/rules/restoration/tests/Rector/ClassMethod/InferParamFromClassMethodReturnRector/InferParamFromClassMethodReturnRectorTest.php +++ b/rules/restoration/tests/Rector/ClassMethod/InferParamFromClassMethodReturnRector/InferParamFromClassMethodReturnRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/restoration/tests/Rector/Namespace_/CompleteImportForPartialAnnotationRector/CompleteImportForPartialAnnotationRectorTest.php b/rules/restoration/tests/Rector/Namespace_/CompleteImportForPartialAnnotationRector/CompleteImportForPartialAnnotationRectorTest.php index 0c3434cf1ac0..780dcab958a8 100644 --- a/rules/restoration/tests/Rector/Namespace_/CompleteImportForPartialAnnotationRector/CompleteImportForPartialAnnotationRectorTest.php +++ b/rules/restoration/tests/Rector/Namespace_/CompleteImportForPartialAnnotationRector/CompleteImportForPartialAnnotationRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/restoration/tests/Rector/New_/CompleteMissingDependencyInNewRector/CompleteMissingDependencyInNewRectorTest.php b/rules/restoration/tests/Rector/New_/CompleteMissingDependencyInNewRector/CompleteMissingDependencyInNewRectorTest.php index 2b6a37c6f874..895006abfc0d 100644 --- a/rules/restoration/tests/Rector/New_/CompleteMissingDependencyInNewRector/CompleteMissingDependencyInNewRectorTest.php +++ b/rules/restoration/tests/Rector/New_/CompleteMissingDependencyInNewRector/CompleteMissingDependencyInNewRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/symfony-code-quality/tests/Rector/Class_/EventListenerToEventSubscriberRector/EventListenerToEventSubscriberRectorTest.php b/rules/symfony-code-quality/tests/Rector/Class_/EventListenerToEventSubscriberRector/EventListenerToEventSubscriberRectorTest.php index 3f197b713aed..999cd4564678 100644 --- a/rules/symfony-code-quality/tests/Rector/Class_/EventListenerToEventSubscriberRector/EventListenerToEventSubscriberRectorTest.php +++ b/rules/symfony-code-quality/tests/Rector/Class_/EventListenerToEventSubscriberRector/EventListenerToEventSubscriberRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/config_with_parameter.php'); + return __DIR__ . '/config/config_with_parameter.php'; } } diff --git a/rules/symfony/tests/Rector/Class_/ChangeFileLoaderInExtensionAndKernelRector/ChangeFileLoaderInExtensionAndKernelRectorTest.php b/rules/symfony/tests/Rector/Class_/ChangeFileLoaderInExtensionAndKernelRector/ChangeFileLoaderInExtensionAndKernelRectorTest.php index e3a031afa003..6bf5b53deb96 100644 --- a/rules/symfony/tests/Rector/Class_/ChangeFileLoaderInExtensionAndKernelRector/ChangeFileLoaderInExtensionAndKernelRectorTest.php +++ b/rules/symfony/tests/Rector/Class_/ChangeFileLoaderInExtensionAndKernelRector/ChangeFileLoaderInExtensionAndKernelRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/symfony/tests/Rector/MethodCall/GetToConstructorInjectionRector/GetToConstructorInjectionRectorTest.php b/rules/symfony/tests/Rector/MethodCall/GetToConstructorInjectionRector/GetToConstructorInjectionRectorTest.php index 4bbdac594fe7..8564869ebc81 100644 --- a/rules/symfony/tests/Rector/MethodCall/GetToConstructorInjectionRector/GetToConstructorInjectionRectorTest.php +++ b/rules/symfony/tests/Rector/MethodCall/GetToConstructorInjectionRector/GetToConstructorInjectionRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/symfony3/tests/Rector/MethodCall/StringFormTypeToClassRector/WithContainerTest.php b/rules/symfony3/tests/Rector/MethodCall/StringFormTypeToClassRector/WithContainerTest.php index 58aa26174a9c..953cc54a69d2 100644 --- a/rules/symfony3/tests/Rector/MethodCall/StringFormTypeToClassRector/WithContainerTest.php +++ b/rules/symfony3/tests/Rector/MethodCall/StringFormTypeToClassRector/WithContainerTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureWithContainer'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/xml_path_config.php'); + return __DIR__ . '/config/xml_path_config.php'; } } diff --git a/rules/symfony4/tests/Rector/MethodCall/ContainerGetToConstructorInjectionRector/ContainerGetToConstructorInjectionRectorTest.php b/rules/symfony4/tests/Rector/MethodCall/ContainerGetToConstructorInjectionRector/ContainerGetToConstructorInjectionRectorTest.php index 69961b3268c8..545988a3a257 100644 --- a/rules/symfony4/tests/Rector/MethodCall/ContainerGetToConstructorInjectionRector/ContainerGetToConstructorInjectionRectorTest.php +++ b/rules/symfony4/tests/Rector/MethodCall/ContainerGetToConstructorInjectionRector/ContainerGetToConstructorInjectionRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/Assign/DimFetchAssignToMethodCallRector/DimFetchAssignToMethodCallRectorTest.php b/rules/transform/tests/Rector/Assign/DimFetchAssignToMethodCallRector/DimFetchAssignToMethodCallRectorTest.php index 8bf7aeb32fc0..747c3c071cde 100644 --- a/rules/transform/tests/Rector/Assign/DimFetchAssignToMethodCallRector/DimFetchAssignToMethodCallRectorTest.php +++ b/rules/transform/tests/Rector/Assign/DimFetchAssignToMethodCallRector/DimFetchAssignToMethodCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/Assign/GetAndSetToMethodCallRector/GetAndSetToMethodCallRectorTest.php b/rules/transform/tests/Rector/Assign/GetAndSetToMethodCallRector/GetAndSetToMethodCallRectorTest.php index 48c090e58a39..a59eb811c923 100644 --- a/rules/transform/tests/Rector/Assign/GetAndSetToMethodCallRector/GetAndSetToMethodCallRectorTest.php +++ b/rules/transform/tests/Rector/Assign/GetAndSetToMethodCallRector/GetAndSetToMethodCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/Assign/PropertyAssignToMethodCallRector/PropertyAssignToMethodCallRectorTest.php b/rules/transform/tests/Rector/Assign/PropertyAssignToMethodCallRector/PropertyAssignToMethodCallRectorTest.php index f7e6fa756fa1..0bb572d181c1 100644 --- a/rules/transform/tests/Rector/Assign/PropertyAssignToMethodCallRector/PropertyAssignToMethodCallRectorTest.php +++ b/rules/transform/tests/Rector/Assign/PropertyAssignToMethodCallRector/PropertyAssignToMethodCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/Assign/PropertyFetchToMethodCallRector/PropertyFetchToMethodCallRectorTest.php b/rules/transform/tests/Rector/Assign/PropertyFetchToMethodCallRector/PropertyFetchToMethodCallRectorTest.php index ffbcb5807349..959fa028b10a 100644 --- a/rules/transform/tests/Rector/Assign/PropertyFetchToMethodCallRector/PropertyFetchToMethodCallRectorTest.php +++ b/rules/transform/tests/Rector/Assign/PropertyFetchToMethodCallRector/PropertyFetchToMethodCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/ClassConstFetch/ClassConstFetchToValueRector/ClassConstFetchToValueRectorTest.php b/rules/transform/tests/Rector/ClassConstFetch/ClassConstFetchToValueRector/ClassConstFetchToValueRectorTest.php index 8d9c070e79e7..fcc1111f545f 100644 --- a/rules/transform/tests/Rector/ClassConstFetch/ClassConstFetchToValueRector/ClassConstFetchToValueRectorTest.php +++ b/rules/transform/tests/Rector/ClassConstFetch/ClassConstFetchToValueRector/ClassConstFetchToValueRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/Class_/ParentClassToTraitsRector/ParentClassToTraitsRectorTest.php b/rules/transform/tests/Rector/Class_/ParentClassToTraitsRector/ParentClassToTraitsRectorTest.php index 82fd42032c67..125463659e96 100644 --- a/rules/transform/tests/Rector/Class_/ParentClassToTraitsRector/ParentClassToTraitsRectorTest.php +++ b/rules/transform/tests/Rector/Class_/ParentClassToTraitsRector/ParentClassToTraitsRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/Expression/MethodCallToReturnRector/MethodCallToReturnRectorTest.php b/rules/transform/tests/Rector/Expression/MethodCallToReturnRector/MethodCallToReturnRectorTest.php index ee5c7ca9b6e2..5e181d14b636 100644 --- a/rules/transform/tests/Rector/Expression/MethodCallToReturnRector/MethodCallToReturnRectorTest.php +++ b/rules/transform/tests/Rector/Expression/MethodCallToReturnRector/MethodCallToReturnRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/ArgumentFuncCallToMethodCallRectorTest.php b/rules/transform/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/ArgumentFuncCallToMethodCallRectorTest.php index 34ff873230eb..acd4ed20082f 100644 --- a/rules/transform/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/ArgumentFuncCallToMethodCallRectorTest.php +++ b/rules/transform/tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/ArgumentFuncCallToMethodCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/FuncCall/FuncCallToMethodCallRector/FuncCallToMethodCallRectorTest.php b/rules/transform/tests/Rector/FuncCall/FuncCallToMethodCallRector/FuncCallToMethodCallRectorTest.php index ccd310a52936..200e176767ab 100644 --- a/rules/transform/tests/Rector/FuncCall/FuncCallToMethodCallRector/FuncCallToMethodCallRectorTest.php +++ b/rules/transform/tests/Rector/FuncCall/FuncCallToMethodCallRector/FuncCallToMethodCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/FuncCall/FuncCallToNewRector/FuncCallToNewRectorTest.php b/rules/transform/tests/Rector/FuncCall/FuncCallToNewRector/FuncCallToNewRectorTest.php index fa69fc581ef8..5bbf1d249e29 100644 --- a/rules/transform/tests/Rector/FuncCall/FuncCallToNewRector/FuncCallToNewRectorTest.php +++ b/rules/transform/tests/Rector/FuncCall/FuncCallToNewRector/FuncCallToNewRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/FuncCall/FuncCallToStaticCallRector/FuncCallToStaticCallRectorTest.php b/rules/transform/tests/Rector/FuncCall/FuncCallToStaticCallRector/FuncCallToStaticCallRectorTest.php index d8af57a2769c..6e68ecce3237 100644 --- a/rules/transform/tests/Rector/FuncCall/FuncCallToStaticCallRector/FuncCallToStaticCallRectorTest.php +++ b/rules/transform/tests/Rector/FuncCall/FuncCallToStaticCallRector/FuncCallToStaticCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/Isset_/UnsetAndIssetToMethodCallRector/UnsetAndIssetToMethodCallRectorTest.php b/rules/transform/tests/Rector/Isset_/UnsetAndIssetToMethodCallRector/UnsetAndIssetToMethodCallRectorTest.php index 36c0ff3f94c5..71edf2d4cc8d 100644 --- a/rules/transform/tests/Rector/Isset_/UnsetAndIssetToMethodCallRector/UnsetAndIssetToMethodCallRectorTest.php +++ b/rules/transform/tests/Rector/Isset_/UnsetAndIssetToMethodCallRector/UnsetAndIssetToMethodCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/MethodCall/CallableInMethodCallToVariableRector/CallableInMethodCallToVariableRectorTest.php b/rules/transform/tests/Rector/MethodCall/CallableInMethodCallToVariableRector/CallableInMethodCallToVariableRectorTest.php index 63a7eeff6b8f..b3c65bb51c03 100644 --- a/rules/transform/tests/Rector/MethodCall/CallableInMethodCallToVariableRector/CallableInMethodCallToVariableRectorTest.php +++ b/rules/transform/tests/Rector/MethodCall/CallableInMethodCallToVariableRector/CallableInMethodCallToVariableRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/MethodCall/MethodCallToAnotherMethodCallWithArgumentsRector/MethodCallToAnotherMethodCallWithArgumentsRectorTest.php b/rules/transform/tests/Rector/MethodCall/MethodCallToAnotherMethodCallWithArgumentsRector/MethodCallToAnotherMethodCallWithArgumentsRectorTest.php index 4add408819fe..92cae88cd021 100644 --- a/rules/transform/tests/Rector/MethodCall/MethodCallToAnotherMethodCallWithArgumentsRector/MethodCallToAnotherMethodCallWithArgumentsRectorTest.php +++ b/rules/transform/tests/Rector/MethodCall/MethodCallToAnotherMethodCallWithArgumentsRector/MethodCallToAnotherMethodCallWithArgumentsRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/MethodCall/MethodCallToPropertyFetchRector/MethodCallToPropertyFetchRectorTest.php b/rules/transform/tests/Rector/MethodCall/MethodCallToPropertyFetchRector/MethodCallToPropertyFetchRectorTest.php index 4919b6f9d379..b99bcc872453 100644 --- a/rules/transform/tests/Rector/MethodCall/MethodCallToPropertyFetchRector/MethodCallToPropertyFetchRectorTest.php +++ b/rules/transform/tests/Rector/MethodCall/MethodCallToPropertyFetchRector/MethodCallToPropertyFetchRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/MethodCall/MethodCallToStaticCallRector/MethodCallToStaticCallRectorTest.php b/rules/transform/tests/Rector/MethodCall/MethodCallToStaticCallRector/MethodCallToStaticCallRectorTest.php index b49e7c32249d..aa1bae9ef072 100644 --- a/rules/transform/tests/Rector/MethodCall/MethodCallToStaticCallRector/MethodCallToStaticCallRectorTest.php +++ b/rules/transform/tests/Rector/MethodCall/MethodCallToStaticCallRector/MethodCallToStaticCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/MethodCall/ReplaceParentCallByPropertyCallRector/ReplaceParentCallByPropertyCallRectorTest.php b/rules/transform/tests/Rector/MethodCall/ReplaceParentCallByPropertyCallRector/ReplaceParentCallByPropertyCallRectorTest.php index 3114bf5ad732..7f1b95cfd2b4 100644 --- a/rules/transform/tests/Rector/MethodCall/ReplaceParentCallByPropertyCallRector/ReplaceParentCallByPropertyCallRectorTest.php +++ b/rules/transform/tests/Rector/MethodCall/ReplaceParentCallByPropertyCallRector/ReplaceParentCallByPropertyCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/MethodCall/ServiceGetterToConstructorInjectionRector/ServiceGetterToConstructorInjectionRectorTest.php b/rules/transform/tests/Rector/MethodCall/ServiceGetterToConstructorInjectionRector/ServiceGetterToConstructorInjectionRectorTest.php index ed019f2303d5..a4865705477e 100644 --- a/rules/transform/tests/Rector/MethodCall/ServiceGetterToConstructorInjectionRector/ServiceGetterToConstructorInjectionRectorTest.php +++ b/rules/transform/tests/Rector/MethodCall/ServiceGetterToConstructorInjectionRector/ServiceGetterToConstructorInjectionRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/MethodCall/VariableMethodCallToServiceCallRector/VariableMethodCallToServiceCallRectorTest.php b/rules/transform/tests/Rector/MethodCall/VariableMethodCallToServiceCallRector/VariableMethodCallToServiceCallRectorTest.php index c9a3634dc8aa..4acd9a19f00d 100644 --- a/rules/transform/tests/Rector/MethodCall/VariableMethodCallToServiceCallRector/VariableMethodCallToServiceCallRectorTest.php +++ b/rules/transform/tests/Rector/MethodCall/VariableMethodCallToServiceCallRector/VariableMethodCallToServiceCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/New_/NewArgToMethodCallRector/NewArgToMethodCallRectorTest.php b/rules/transform/tests/Rector/New_/NewArgToMethodCallRector/NewArgToMethodCallRectorTest.php index 6e0662478350..d23d88313872 100644 --- a/rules/transform/tests/Rector/New_/NewArgToMethodCallRector/NewArgToMethodCallRectorTest.php +++ b/rules/transform/tests/Rector/New_/NewArgToMethodCallRector/NewArgToMethodCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/New_/NewToConstructorInjectionRector/NewToConstructorInjectionRectorTest.php b/rules/transform/tests/Rector/New_/NewToConstructorInjectionRector/NewToConstructorInjectionRectorTest.php index e14c0fecadf0..26ddf75831e1 100644 --- a/rules/transform/tests/Rector/New_/NewToConstructorInjectionRector/NewToConstructorInjectionRectorTest.php +++ b/rules/transform/tests/Rector/New_/NewToConstructorInjectionRector/NewToConstructorInjectionRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/New_/NewToConstructorInjectionRector/Php80Test.php b/rules/transform/tests/Rector/New_/NewToConstructorInjectionRector/Php80Test.php index b5843dd9f890..696c4ed5f19c 100644 --- a/rules/transform/tests/Rector/New_/NewToConstructorInjectionRector/Php80Test.php +++ b/rules/transform/tests/Rector/New_/NewToConstructorInjectionRector/Php80Test.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp80'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/New_/NewToMethodCallRector/NewToMethodCallRectorTest.php b/rules/transform/tests/Rector/New_/NewToMethodCallRector/NewToMethodCallRectorTest.php index 8f4bcea62124..48e66151e323 100644 --- a/rules/transform/tests/Rector/New_/NewToMethodCallRector/NewToMethodCallRectorTest.php +++ b/rules/transform/tests/Rector/New_/NewToMethodCallRector/NewToMethodCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/New_/NewToStaticCallRector/NewToStaticCallRectorTest.php b/rules/transform/tests/Rector/New_/NewToStaticCallRector/NewToStaticCallRectorTest.php index 17d44402cb7b..a5516d3982d5 100644 --- a/rules/transform/tests/Rector/New_/NewToStaticCallRector/NewToStaticCallRectorTest.php +++ b/rules/transform/tests/Rector/New_/NewToStaticCallRector/NewToStaticCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/StaticCall/StaticCallToFuncCallRector/StaticCallToFuncCallRectorTest.php b/rules/transform/tests/Rector/StaticCall/StaticCallToFuncCallRector/StaticCallToFuncCallRectorTest.php index 0a4739e99f1b..98bc3502c6f1 100644 --- a/rules/transform/tests/Rector/StaticCall/StaticCallToFuncCallRector/StaticCallToFuncCallRectorTest.php +++ b/rules/transform/tests/Rector/StaticCall/StaticCallToFuncCallRector/StaticCallToFuncCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/StaticCall/StaticCallToMethodCallRector/StaticCallToMethodCallRectorTest.php b/rules/transform/tests/Rector/StaticCall/StaticCallToMethodCallRector/StaticCallToMethodCallRectorTest.php index a0be6746fa80..9cdab86d7d0d 100644 --- a/rules/transform/tests/Rector/StaticCall/StaticCallToMethodCallRector/StaticCallToMethodCallRectorTest.php +++ b/rules/transform/tests/Rector/StaticCall/StaticCallToMethodCallRector/StaticCallToMethodCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/StaticCall/StaticCallToNewRector/StaticCallToNewRectorTest.php b/rules/transform/tests/Rector/StaticCall/StaticCallToNewRector/StaticCallToNewRectorTest.php index 48fe4984480f..da80198ea56d 100644 --- a/rules/transform/tests/Rector/StaticCall/StaticCallToNewRector/StaticCallToNewRectorTest.php +++ b/rules/transform/tests/Rector/StaticCall/StaticCallToNewRector/StaticCallToNewRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/String_/StringToClassConstantRector/StringToClassConstantRectorTest.php b/rules/transform/tests/Rector/String_/StringToClassConstantRector/StringToClassConstantRectorTest.php index f625d835d3af..5dad478d944d 100644 --- a/rules/transform/tests/Rector/String_/StringToClassConstantRector/StringToClassConstantRectorTest.php +++ b/rules/transform/tests/Rector/String_/StringToClassConstantRector/StringToClassConstantRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/transform/tests/Rector/String_/ToStringToMethodCallRector/ToStringToMethodCallRectorTest.php b/rules/transform/tests/Rector/String_/ToStringToMethodCallRector/ToStringToMethodCallRectorTest.php index ccd186c54d38..cf045645f4fa 100644 --- a/rules/transform/tests/Rector/String_/ToStringToMethodCallRector/ToStringToMethodCallRectorTest.php +++ b/rules/transform/tests/Rector/String_/ToStringToMethodCallRector/ToStringToMethodCallRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/type-declaration/tests/Rector/ClassMethod/AddParamTypeDeclarationRector/AddParamTypeDeclarationRectorTest.php b/rules/type-declaration/tests/Rector/ClassMethod/AddParamTypeDeclarationRector/AddParamTypeDeclarationRectorTest.php index a5e251845c96..0434ffa1643c 100644 --- a/rules/type-declaration/tests/Rector/ClassMethod/AddParamTypeDeclarationRector/AddParamTypeDeclarationRectorTest.php +++ b/rules/type-declaration/tests/Rector/ClassMethod/AddParamTypeDeclarationRector/AddParamTypeDeclarationRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/type-declaration/tests/Rector/ClassMethod/AddReturnTypeDeclarationRector/AddReturnTypeDeclarationRectorTest.php b/rules/type-declaration/tests/Rector/ClassMethod/AddReturnTypeDeclarationRector/AddReturnTypeDeclarationRectorTest.php index f3bc3aea87a1..7b849e7b3409 100644 --- a/rules/type-declaration/tests/Rector/ClassMethod/AddReturnTypeDeclarationRector/AddReturnTypeDeclarationRectorTest.php +++ b/rules/type-declaration/tests/Rector/ClassMethod/AddReturnTypeDeclarationRector/AddReturnTypeDeclarationRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/type-declaration/tests/Rector/Closure/AddClosureReturnTypeRector/AddClosureReturnTypeRectorTest.php b/rules/type-declaration/tests/Rector/Closure/AddClosureReturnTypeRector/AddClosureReturnTypeRectorTest.php index 9e909ef52a55..7a8e21ca1d61 100644 --- a/rules/type-declaration/tests/Rector/Closure/AddClosureReturnTypeRector/AddClosureReturnTypeRectorTest.php +++ b/rules/type-declaration/tests/Rector/Closure/AddClosureReturnTypeRector/AddClosureReturnTypeRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/before_union_types.php'); + return __DIR__ . '/config/before_union_types.php'; } } diff --git a/rules/type-declaration/tests/Rector/FunctionLike/ParamTypeDeclarationRector/ParamTypeDeclarationRectorTest.php b/rules/type-declaration/tests/Rector/FunctionLike/ParamTypeDeclarationRector/ParamTypeDeclarationRectorTest.php index dda0a1895222..a70f1e0a51ce 100644 --- a/rules/type-declaration/tests/Rector/FunctionLike/ParamTypeDeclarationRector/ParamTypeDeclarationRectorTest.php +++ b/rules/type-declaration/tests/Rector/FunctionLike/ParamTypeDeclarationRector/ParamTypeDeclarationRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/before_union_types.php'); + return __DIR__ . '/config/before_union_types.php'; } } diff --git a/rules/type-declaration/tests/Rector/FunctionLike/ParamTypeDeclarationRector/PropertyTypeParamTypeDeclarationRectorTest.php b/rules/type-declaration/tests/Rector/FunctionLike/ParamTypeDeclarationRector/PropertyTypeParamTypeDeclarationRectorTest.php index f5a84bdb890c..2ebe665ff31b 100644 --- a/rules/type-declaration/tests/Rector/FunctionLike/ParamTypeDeclarationRector/PropertyTypeParamTypeDeclarationRectorTest.php +++ b/rules/type-declaration/tests/Rector/FunctionLike/ParamTypeDeclarationRector/PropertyTypeParamTypeDeclarationRectorTest.php @@ -24,8 +24,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePropertyType'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/typed_properties.php'); + return __DIR__ . '/config/typed_properties.php'; } } diff --git a/rules/type-declaration/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/CorrectionTest.php b/rules/type-declaration/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/CorrectionTest.php index 54dbafc41267..8c40c75ee015 100644 --- a/rules/type-declaration/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/CorrectionTest.php +++ b/rules/type-declaration/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/CorrectionTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/before_union_types.php'); + return __DIR__ . '/config/before_union_types.php'; } } diff --git a/rules/type-declaration/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/InheritanceTest.php b/rules/type-declaration/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/InheritanceTest.php index 7e2aad71247c..272f8ee52375 100644 --- a/rules/type-declaration/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/InheritanceTest.php +++ b/rules/type-declaration/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/InheritanceTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureInheritance'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/scalar_types.php'); + return __DIR__ . '/config/scalar_types.php'; } } diff --git a/rules/type-declaration/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/Php80RectorTest.php b/rules/type-declaration/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/Php80RectorTest.php index 0aa71d66fdd3..530dfa8f41b4 100644 --- a/rules/type-declaration/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/Php80RectorTest.php +++ b/rules/type-declaration/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/Php80RectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureForPhp80'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/php_80.php'); + return __DIR__ . '/config/php_80.php'; } } diff --git a/rules/type-declaration/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/ReturnTypeDeclarationRectorTest.php b/rules/type-declaration/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/ReturnTypeDeclarationRectorTest.php index d2a2f03e9a11..9949587d599e 100644 --- a/rules/type-declaration/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/ReturnTypeDeclarationRectorTest.php +++ b/rules/type-declaration/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/ReturnTypeDeclarationRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/before_union_types.php'); + return __DIR__ . '/config/before_union_types.php'; } } diff --git a/rules/type-declaration/tests/Rector/Property/PropertyTypeDeclarationRector/Php74Test.php b/rules/type-declaration/tests/Rector/Property/PropertyTypeDeclarationRector/Php74Test.php index 7b9f8b65c1aa..2842b5b6ed30 100644 --- a/rules/type-declaration/tests/Rector/Property/PropertyTypeDeclarationRector/Php74Test.php +++ b/rules/type-declaration/tests/Rector/Property/PropertyTypeDeclarationRector/Php74Test.php @@ -26,8 +26,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp74'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/typed_property.php'); + return __DIR__ . '/config/typed_property.php'; } } diff --git a/rules/visibility/tests/Rector/ClassConst/ChangeConstantVisibilityRector/ChangeConstantVisibilityRectorTest.php b/rules/visibility/tests/Rector/ClassConst/ChangeConstantVisibilityRector/ChangeConstantVisibilityRectorTest.php index 8f1e2277e9c7..7f1628e986df 100644 --- a/rules/visibility/tests/Rector/ClassConst/ChangeConstantVisibilityRector/ChangeConstantVisibilityRectorTest.php +++ b/rules/visibility/tests/Rector/ClassConst/ChangeConstantVisibilityRector/ChangeConstantVisibilityRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/visibility/tests/Rector/ClassMethod/ChangeMethodVisibilityRector/ChangeMethodVisibilityRectorTest.php b/rules/visibility/tests/Rector/ClassMethod/ChangeMethodVisibilityRector/ChangeMethodVisibilityRectorTest.php index 5ca4272f6d22..64a486156ae6 100644 --- a/rules/visibility/tests/Rector/ClassMethod/ChangeMethodVisibilityRector/ChangeMethodVisibilityRectorTest.php +++ b/rules/visibility/tests/Rector/ClassMethod/ChangeMethodVisibilityRector/ChangeMethodVisibilityRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/rules/visibility/tests/Rector/Property/ChangePropertyVisibilityRector/ChangePropertyVisibilityRectorTest.php b/rules/visibility/tests/Rector/Property/ChangePropertyVisibilityRector/ChangePropertyVisibilityRectorTest.php index 2e823d789d04..fedd1a56d6b2 100644 --- a/rules/visibility/tests/Rector/Property/ChangePropertyVisibilityRector/ChangePropertyVisibilityRectorTest.php +++ b/rules/visibility/tests/Rector/Property/ChangePropertyVisibilityRector/ChangePropertyVisibilityRectorTest.php @@ -23,8 +23,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/configured_rule.php'); + return __DIR__ . '/config/configured_rule.php'; } } diff --git a/tests/Exclusion/ExclusionManagerTest.php b/tests/Exclusion/ExclusionManagerTest.php index 66163ef9e243..b8c810269259 100644 --- a/tests/Exclusion/ExclusionManagerTest.php +++ b/tests/Exclusion/ExclusionManagerTest.php @@ -26,8 +26,8 @@ public function provideData(): Iterator return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); } - protected function provideConfigFileInfo(): ?SmartFileInfo + protected function provideConfigFilePath(): string { - return new SmartFileInfo(__DIR__ . '/config/some_config.php'); + return __DIR__ . '/config/some_config.php'; } }