From 84560261ebe5b701fe59ef09230f03c176272d69 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Fri, 23 Aug 2019 21:36:39 -0400 Subject: [PATCH 1/2] Add cakephp38 target There was only one rectorable deprecation in CakePHP 3.8 --- config/set/cakephp/cakephp36.yaml | 2 +- config/set/cakephp/cakephp37.yaml | 2 +- config/set/cakephp/cakephp38.yaml | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 config/set/cakephp/cakephp38.yaml diff --git a/config/set/cakephp/cakephp36.yaml b/config/set/cakephp/cakephp36.yaml index b9a5b0fc12f..e06ff167b6d 100644 --- a/config/set/cakephp/cakephp36.yaml +++ b/config/set/cakephp/cakephp36.yaml @@ -1,4 +1,4 @@ -# source: https://book.cakephp.org/3.next/en/appendices/3-6-migration-guide.html +# source: https://book.cakephp.org/3.0/en/appendices/3-6-migration-guide.html services: Rector\Rector\MethodCall\RenameMethodRector: diff --git a/config/set/cakephp/cakephp37.yaml b/config/set/cakephp/cakephp37.yaml index a9d0e7958d9..e58bb4776b2 100644 --- a/config/set/cakephp/cakephp37.yaml +++ b/config/set/cakephp/cakephp37.yaml @@ -1,4 +1,4 @@ -# source: https://book.cakephp.org/3.next/en/appendices/3-7-migration-guide.html +# source: https://book.cakephp.org/3.0/en/appendices/3-7-migration-guide.html services: Rector\Rector\MethodCall\RenameMethodRector: diff --git a/config/set/cakephp/cakephp38.yaml b/config/set/cakephp/cakephp38.yaml new file mode 100644 index 00000000000..2110beff541 --- /dev/null +++ b/config/set/cakephp/cakephp38.yaml @@ -0,0 +1,6 @@ +# source: https://book.cakephp.org/3.0/en/appendices/3-8-migration-guide.html + +services: + Rector\Rector\MethodCall\RenameMethodRector: + Cake\ORM\Entity: + 'visibleProperties': 'getVisible' From 5a4906d23067968da484137e7867c2afe5f5d785 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Fri, 23 Aug 2019 21:40:45 -0400 Subject: [PATCH 2/2] Fix typo --- .../MethodCallToAnotherMethodCallWithArgumentsRector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rector/MethodCall/MethodCallToAnotherMethodCallWithArgumentsRector.php b/src/Rector/MethodCall/MethodCallToAnotherMethodCallWithArgumentsRector.php index 86d29afc573..8b4e58dd997 100644 --- a/src/Rector/MethodCall/MethodCallToAnotherMethodCallWithArgumentsRector.php +++ b/src/Rector/MethodCall/MethodCallToAnotherMethodCallWithArgumentsRector.php @@ -26,7 +26,7 @@ final class MethodCallToAnotherMethodCallWithArgumentsRector extends AbstractRec public function getDefinition(): RectorDefinition { - return new RectorDefinition('Turns old method call with specfici type to new one with arguments', [ + return new RectorDefinition('Turns old method call with specific types to new one with arguments', [ new ConfiguredCodeSample( <<<'CODE_SAMPLE' $serviceDefinition = new Nette\DI\ServiceDefinition;