Add rules for renaming CakePHP's Router methods

Refs https://github.com/cakephp/cakephp/pull/13664
This commit is contained in:
ADmad 2019-09-22 22:10:52 +05:30 committed by GitHub
parent 07a0e5d220
commit 075bb0f974
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,13 @@ services:
Cake\Validation\Validator:
containsNonAlphaNumeric: notAlphaNumeric
Rector\Rector\MethodCall\RenameStaticMethodRector:
$oldToNewMethodByClasses:
Router:
pushRequest: setRequest
setRequestInfo: setRequest
setRequestContext: setRequest
Rector\Rector\ClassMethod\AddReturnTypeDeclarationRector:
Cake\Http\BaseApplication:
bootstrap: 'void'