Skip to content

Commit a26004b

Browse files
authored
[PHP7] Add constructor compatibility on eZContentObjectTreeNode (#1395)
* [PHP7] Add ctor compat on eZContentObjectTreeNode * Fix recursion in tests by using parent::
1 parent 6043da5 commit a26004b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

kernel/classes/ezcontentobjecttreenode.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ class eZContentObjectTreeNode extends eZPersistentObject
3232
const SORT_ORDER_DESC = 0;
3333
const SORT_ORDER_ASC = 1;
3434

35+
/**
36+
* @deprecated Use eZContentObjectTreeNode::__construct() instead
37+
* @param int|array $row
38+
*/
39+
function eZContentObjectTreeNode( $row = array() )
40+
{
41+
parent::__construct( $row );
42+
}
43+
3544
/**
3645
* @inheritdoc
3746
*/

0 commit comments

Comments
 (0)