Skip to content

Commit

Permalink
Correct interfaces to conform to PHP 7.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
Al2Klimov authored and Thomas-Gelf committed Jan 24, 2018
1 parent cf9307f commit 72ec132
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions library/Icinga/Authentication/User/DbUserBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ protected function initializeFilterColumns()
*
* @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');
Expand All @@ -138,7 +138,7 @@ public function insert($table, array $bind)
* @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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ protected function initializeFilterColumns()
* @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);
Expand All @@ -146,7 +146,7 @@ public function insert($table, array $bind)
* @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);
Expand Down
2 changes: 1 addition & 1 deletion library/Icinga/Web/Form/Element/Note.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function init()
*
* @return bool Always true
*/
public function isValid($value)
public function isValid($value, $context = null)
{
return true;
}
Expand Down

0 comments on commit 72ec132

Please sign in to comment.