From eb376d5c491068260f9bafcf67cec7689b455096 Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle Date: Fri, 21 Sep 2018 11:12:27 +0200 Subject: [PATCH] PHP 7.2 deprecation fixes --- bin/php/updatesearchindexsolr.php | 2 +- classes/ezfezpsolrquerybuilder.php | 2 +- classes/ezfindresultnode.php | 2 +- classes/ezfindresultobject.php | 2 +- classes/ezfmodulefunctioncollection.php | 2 +- classes/ezfsearchresultinfo.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/php/updatesearchindexsolr.php b/bin/php/updatesearchindexsolr.php index 88b91057..0257cf9e 100755 --- a/bin/php/updatesearchindexsolr.php +++ b/bin/php/updatesearchindexsolr.php @@ -61,7 +61,7 @@ class ezfUpdateSearchIndexSolr * @param eZCLI $cli * @param string $executedScript */ - function ezfUpdateSearchIndexSolr( eZScript $script, eZCLI $cli, $executedScript ) + function __construct( eZScript $script, eZCLI $cli, $executedScript ) { $this->Script = $script; $this->CLI = $cli; diff --git a/classes/ezfezpsolrquerybuilder.php b/classes/ezfezpsolrquerybuilder.php index bd5585e5..ea50af63 100644 --- a/classes/ezfezpsolrquerybuilder.php +++ b/classes/ezfezpsolrquerybuilder.php @@ -14,7 +14,7 @@ class ezfeZPSolrQueryBuilder * @param Object $searchPluginInstance Search engine instance. Allows the query builder to * communicate with the caller ( eZSolr instance ). */ - function ezfeZPSolrQueryBuilder( $searchPluginInstance ) + function __construct( $searchPluginInstance ) { $this->searchPluginInstance = $searchPluginInstance; } diff --git a/classes/ezfindresultnode.php b/classes/ezfindresultnode.php index b6462159..230a1ff8 100644 --- a/classes/ezfindresultnode.php +++ b/classes/ezfindresultnode.php @@ -10,7 +10,7 @@ class eZFindResultNode extends eZContentObjectTreeNode /*! \reimp */ - function eZFindResultNode( $rows = array() ) + function __construct( $rows = array() ) { parent::__construct( $rows ); if ( isset( $rows['id'] ) ) diff --git a/classes/ezfindresultobject.php b/classes/ezfindresultobject.php index 294db38d..35998cab 100644 --- a/classes/ezfindresultobject.php +++ b/classes/ezfindresultobject.php @@ -10,7 +10,7 @@ class eZFindResultObject extends eZContentObject /*! \reimp */ - function eZFindResultObject( $rows = array() ) + function __construct( $rows = array() ) { $this->LocalAttributeValueList = array(); $this->LocalAttributeNameList = array( 'published' ); diff --git a/classes/ezfmodulefunctioncollection.php b/classes/ezfmodulefunctioncollection.php index be308534..f5202178 100644 --- a/classes/ezfmodulefunctioncollection.php +++ b/classes/ezfmodulefunctioncollection.php @@ -14,7 +14,7 @@ class ezfModuleFunctionCollection /** * Constructor */ - function ezfModuleFunctionCollection() + function __construct() { } diff --git a/classes/ezfsearchresultinfo.php b/classes/ezfsearchresultinfo.php index 756f2e4b..270c80aa 100644 --- a/classes/ezfsearchresultinfo.php +++ b/classes/ezfsearchresultinfo.php @@ -24,7 +24,7 @@ class ezfSearchResultInfo * 'Engine' => 'engine name', * ... ) */ - function ezfSearchResultInfo( array $resultArray ) + function __construct( array $resultArray ) { $this->ResultArray = $resultArray; }