cakephp / upgrade

Upgrade tools for CakePHP meant to facilitate migrating from one version of the framework to another
MIT License
110 stars 60 forks source link

Some more rector rules #262

Closed dereuromark closed 9 months ago

dereuromark commented 9 months ago

Components

public $components = [

to

public array $components = [

View

protected $layout = 

to

protected string $layout = 

Controller

protected $modelClass = 

to

protected ?string $modelClass = 
LordSimal commented 9 months ago

Shouldn't modelClass be defaultTable? I guess both are valid since ModelAwareTrait and TableLocatorAwareTrait are possible to use.