mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 09:38:53 +01:00
fix PHP 8.0 Fatal error: Declaration of Api\Etemplate\Request\Session::read($id = null) must be compatible with Api\Etemplate\Request::read($id = null, $handle_not_found = true)
This commit is contained in:
parent
a94a46578f
commit
417bbccbe3
@ -97,9 +97,10 @@ class Files extends Etemplate\Request
|
||||
* Factory method to get a new request object or the one for an existing request
|
||||
*
|
||||
* @param string $id =null
|
||||
* @return ?Etemplate\Request|false the object or false if $id is not found
|
||||
* @param bool $handle_not_found =true true: handle not found by trying to redirect, false: just return null
|
||||
* @return Request|null null if Request not found and $handle_not_found === false
|
||||
*/
|
||||
static function read($id=null)
|
||||
public static function read($id=null, $handle_not_found=true)
|
||||
{
|
||||
$request = new Files($id);
|
||||
|
||||
|
@ -83,9 +83,10 @@ class Session extends Etemplate\Request
|
||||
* Factory method to get a new request object or the one for an existing request
|
||||
*
|
||||
* @param string $id =null
|
||||
* @return ?Etemplate\request|false the object or false if $id is not found
|
||||
* @param bool $handle_not_found =true true: handle not found by trying to redirect, false: just return null
|
||||
* @return Request|null null if Request not found and $handle_not_found === false
|
||||
*/
|
||||
static function read($id=null)
|
||||
public static function read($id=null, $handle_not_found=true)
|
||||
{
|
||||
$request = new Session($id);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user