mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-19 07:40:49 +01:00
Merge pull request #1889 from markstory/cakephp38
Add cakephp3.8 target and fix a typo
This commit is contained in:
commit
888a9ce4e1
@ -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:
|
||||
|
@ -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:
|
||||
|
6
config/set/cakephp/cakephp38.yaml
Normal file
6
config/set/cakephp/cakephp38.yaml
Normal file
@ -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'
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user