mirror of
https://github.com/rectorphp/rector.git
synced 2024-07-02 07:33:30 +00:00
Start CakePHP 4.0 rectors
* Add removed method renames * Add a handful of return typehints
This commit is contained in:
parent
cbbce30ed8
commit
3f6b76a667
26
config/set/cakephp/cakephp40.yaml
Normal file
26
config/set/cakephp/cakephp40.yaml
Normal file
|
@ -0,0 +1,26 @@
|
|||
# source: https://book.cakephp.org/4.0/en/appendices/4-0-migration-guide.html
|
||||
|
||||
services:
|
||||
Rector\Rector\MethodCall\RenameMethodRector:
|
||||
Cake\Form\Form:
|
||||
'errors': 'getErrors'
|
||||
Cake\Mailer\Email:
|
||||
'set': 'setViewVars'
|
||||
|
||||
Rector\Rector\ClassMethod\AddReturnTypeDeclarationRector:
|
||||
Cake\Http\BaseApplication:
|
||||
bootstrap: 'void'
|
||||
bootstrapCli: 'void'
|
||||
middleware: 'Cake\Http\MiddlewareQueue'
|
||||
Cake\Console\Shell:
|
||||
initialize: 'void'
|
||||
Cake\Controller\Controller:
|
||||
initialize: 'void'
|
||||
render: 'Cake\Http\Response'
|
||||
Cake\ORM\Table:
|
||||
initialize: 'void'
|
||||
updateAll: 'int'
|
||||
deleteAll: 'int'
|
||||
validationDefault: 'Cake\Validation\Validator'
|
||||
Cake\View\Helper:
|
||||
initialize: 'void'
|
Loading…
Reference in New Issue
Block a user