fix for PHP Warning: Declaration of etemplate_request_cache::id() should be compatible with & etemplate_request::id()

This commit is contained in:
Ralf Becker 2016-02-22 16:20:00 +00:00
parent 597de72867
commit a84a255bb7
3 changed files with 6 additions and 6 deletions

View File

@ -78,7 +78,7 @@ class etemplate_request_cache extends etemplate_request
*
* @return string
*/
public function id()
public function &id()
{
//error_log(__METHOD__."() id=$this->id");
return $this->id;
@ -87,7 +87,7 @@ class etemplate_request_cache extends etemplate_request
/**
* Factory method to get a new request object or the one for an existing request
*
* @param string $id=null
* @param string $id =null
* @return etemplate_request|boolean the object or false if $id is not found
*/
static function read($id=null)

View File

@ -83,7 +83,7 @@ class etemplate_request_files extends etemplate_request
*
* @return string
*/
public function id()
public function &id()
{
//error_log(__METHOD__."() id=$this->id");
return $this->id;
@ -92,7 +92,7 @@ class etemplate_request_files extends etemplate_request
/**
* Factory method to get a new request object or the one for an existing request
*
* @param string $id=null
* @param string $id =null
* @return etemplate_request|boolean the object or false if $id is not found
*/
static function read($id=null)

View File

@ -68,7 +68,7 @@ class etemplate_request_session extends etemplate_request
*
* @return string
*/
public function id()
public function &id()
{
//error_log(__METHOD__."() id=$this->id");
return $this->id;
@ -77,7 +77,7 @@ class etemplate_request_session extends etemplate_request
/**
* Factory method to get a new request object or the one for an existing request
*
* @param string $id=null
* @param string $id =null
* @return etemplate_request|boolean the object or false if $id is not found
*/
static function read($id=null)