0

I was using the following code in PHP 5.3 :

$this->_tableNames =& new DbTableNames();

But now, I updated my version to PHP 5.5 and get this error :

Deprecated: Assigning the return value of new by reference is deprecated

I understand that PHP 5.5 deprecates that operation. What would be relevant line to substitute so i can run my application on PHP 5.5?

Hello Man
  • 673
  • 1
  • 11
  • 29
  • 1
    Replace with `$this->_tableNames = new DbTableNames();`.... you're instantiating a new object, so there's no need to do it by reference, $this->_tableNames will be a pointer to the instance anyway – Mark Baker May 05 '15 at 08:20
  • thank u solved my issue – Hello Man May 05 '15 at 08:39

0 Answers0