Permalink
Browse files

Type hint model param

  • Loading branch information...
ADmad committed Mar 4, 2015
1 parent a1286e9 commit 7173f21dc8fdf793f8eb69d82db424486aef86a2
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Behavior/TreeBehavior.php
@@ -111,7 +111,7 @@ public function afterSave(Model $Model, $created, $options = array()) {
* @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']]);

0 comments on commit 7173f21

Please sign in to comment.