mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Type hint model param
This commit is contained in:
parent
a1286e9e7d
commit
7173f21dc8
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ class TreeBehavior extends ModelBehavior {
|
|||
* @param int|string $id Record ID
|
||||
* @return void
|
||||
*/
|
||||
protected function _setChildrenLevel($Model, $id) {
|
||||
protected function _setChildrenLevel(Model $Model, $id) {
|
||||
$settings = $Model->Behaviors->Tree->settings[$Model->alias];
|
||||
$primaryKey = $Model->primaryKey;
|
||||
$depths = array($id => (int)$Model->data[$Model->alias][$settings['level']]);
|
||||
|
|
Loading…
Reference in a new issue