Skip to content

Commit

Permalink
Add more refactorings for CakePHP 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 16, 2020
1 parent 04a08c0 commit 5380409
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/set/cakephp/cakephp40.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ services:
'Cake\Controller\Controller':
initialize: 'void'
render: 'Cake\Http\Response'
'Cake\Form\Form':
validate: 'bool'
_buildSchema: 'Cake\Form\Schema'
'Cake\ORM\Behavior':
initialize: 'void'
'Cake\ORM\Table':
Expand All @@ -71,6 +74,9 @@ services:

Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeDeclarationRector:
$typehintForParameterByMethodByClass:
'Cake\Form\Form':
getData:
0: '?string'
'Cake\ORM\Behavior':
beforeFind:
0: 'Cake\Event\EventInterface'
Expand Down

0 comments on commit 5380409

Please sign in to comment.