From a26004b2e09113c21e3bf06a9c983773a6673f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20R?= Date: Mon, 29 Oct 2018 10:14:51 +0100 Subject: [PATCH] [PHP7] Add constructor compatibility on eZContentObjectTreeNode (#1395) * [PHP7] Add ctor compat on eZContentObjectTreeNode * Fix recursion in tests by using parent:: --- kernel/classes/ezcontentobjecttreenode.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kernel/classes/ezcontentobjecttreenode.php b/kernel/classes/ezcontentobjecttreenode.php index 718d36255c0..1315837309c 100644 --- a/kernel/classes/ezcontentobjecttreenode.php +++ b/kernel/classes/ezcontentobjecttreenode.php @@ -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 */