Skip to content

Commit

Permalink
[PHP7] Add constructor compatibility on eZContentObjectTreeNode (#1395)
Browse files Browse the repository at this point in the history
* [PHP7] Add ctor compat on eZContentObjectTreeNode
* Fix recursion in tests by using parent::
  • Loading branch information
andrerom authored Oct 29, 2018
1 parent 6043da5 commit a26004b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions kernel/classes/ezcontentobjecttreenode.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ class eZContentObjectTreeNode extends eZPersistentObject
const SORT_ORDER_DESC = 0;
const SORT_ORDER_ASC = 1;

/**
* @deprecated Use eZContentObjectTreeNode::__construct() instead
* @param int|array $row
*/
function eZContentObjectTreeNode( $row = array() )
{
parent::__construct( $row );
}

/**
* @inheritdoc
*/
Expand Down

0 comments on commit a26004b

Please sign in to comment.