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
|
||||
*/
|
||||
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');
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -48,7 +48,7 @@ class Note extends FormElement
|
|||
*
|
||||
* @return bool Always true
|
||||
*/
|
||||
public function isValid($value)
|
||||
public function isValid($value, $context = null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue