Correct interfaces to conform to PHP 7.2+

This commit is contained in:
Alexander A. Klimov 2017-12-14 17:23:37 +01:00 committed by Thomas Gelf
parent cf9307fcc4
commit 72ec132f25
3 changed files with 5 additions and 5 deletions

View File

@ -117,7 +117,7 @@ class DbUserBackend extends DbRepository implements UserBackendInterface, Inspec
*
* @return void
*/
public function insert($table, array $bind)
public function insert($table, array $bind, array $types = array())
{
$this->requireTable($table);
$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 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);
$bind['last_modified'] = date('Y-m-d H:i:s');

View File

@ -133,7 +133,7 @@ class DbUserGroupBackend extends DbRepository implements Inspectable, UserGroupB
* @param string $table
* @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');
parent::insert($table, $bind);
@ -146,7 +146,7 @@ class DbUserGroupBackend extends DbRepository implements Inspectable, UserGroupB
* @param array $bind
* @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');
parent::update($table, $bind, $filter);

View File

@ -48,7 +48,7 @@ class Note extends FormElement
*
* @return bool Always true
*/
public function isValid($value)
public function isValid($value, $context = null)
{
return true;
}