mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
Correct interfaces to conform to PHP 7.2+
This commit is contained in:
parent
cf9307fcc4
commit
72ec132f25
@ -117,7 +117,7 @@ class DbUserBackend extends DbRepository implements UserBackendInterface, Inspec
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function insert($table, array $bind)
|
public function insert($table, array $bind, array $types = array())
|
||||||
{
|
{
|
||||||
$this->requireTable($table);
|
$this->requireTable($table);
|
||||||
$bind['created_at'] = date('Y-m-d H:i:s');
|
$bind['created_at'] = date('Y-m-d H:i:s');
|
||||||
@ -138,7 +138,7 @@ class DbUserBackend extends DbRepository implements UserBackendInterface, Inspec
|
|||||||
* @param array $bind
|
* @param array $bind
|
||||||
* @param Filter $filter
|
* @param Filter $filter
|
||||||
*/
|
*/
|
||||||
public function update($table, array $bind, Filter $filter = null)
|
public function update($table, array $bind, Filter $filter = null, array $types = array())
|
||||||
{
|
{
|
||||||
$this->requireTable($table);
|
$this->requireTable($table);
|
||||||
$bind['last_modified'] = date('Y-m-d H:i:s');
|
$bind['last_modified'] = date('Y-m-d H:i:s');
|
||||||
|
@ -133,7 +133,7 @@ class DbUserGroupBackend extends DbRepository implements Inspectable, UserGroupB
|
|||||||
* @param string $table
|
* @param string $table
|
||||||
* @param array $bind
|
* @param array $bind
|
||||||
*/
|
*/
|
||||||
public function insert($table, array $bind)
|
public function insert($table, array $bind, array $types = array())
|
||||||
{
|
{
|
||||||
$bind['created_at'] = date('Y-m-d H:i:s');
|
$bind['created_at'] = date('Y-m-d H:i:s');
|
||||||
parent::insert($table, $bind);
|
parent::insert($table, $bind);
|
||||||
@ -146,7 +146,7 @@ class DbUserGroupBackend extends DbRepository implements Inspectable, UserGroupB
|
|||||||
* @param array $bind
|
* @param array $bind
|
||||||
* @param Filter $filter
|
* @param Filter $filter
|
||||||
*/
|
*/
|
||||||
public function update($table, array $bind, Filter $filter = null)
|
public function update($table, array $bind, Filter $filter = null, array $types = array())
|
||||||
{
|
{
|
||||||
$bind['last_modified'] = date('Y-m-d H:i:s');
|
$bind['last_modified'] = date('Y-m-d H:i:s');
|
||||||
parent::update($table, $bind, $filter);
|
parent::update($table, $bind, $filter);
|
||||||
|
@ -48,7 +48,7 @@ class Note extends FormElement
|
|||||||
*
|
*
|
||||||
* @return bool Always true
|
* @return bool Always true
|
||||||
*/
|
*/
|
||||||
public function isValid($value)
|
public function isValid($value, $context = null)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user