Skip to content

Commit c6f37e6

Browse files
author
André R
committed
[PHP7] Add eZContentObjectTreeNode::__construct() now that BC construct method is added
1 parent dee3162 commit c6f37e6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

kernel/classes/ezcontentobjecttreenode.php

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

35+
public function __construct( $row = array() )
36+
{
37+
parent::__construct( $row );
38+
}
39+
3540
/**
3641
* @deprecated Use eZContentObjectTreeNode::__construct() instead
3742
* @param int|array $row
3843
*/
3944
function eZContentObjectTreeNode( $row = array() )
4045
{
41-
parent::__construct( $row );
46+
self::__construct( $row );
4247
}
4348

4449
/**

0 commit comments

Comments
 (0)