more test and deprecation fixes

This commit is contained in:
Andreas Gohr
2023-04-05 13:39:15 +02:00
parent 76e537bf11
commit 6a819106d9
7 changed files with 37 additions and 26 deletions

View File

@ -6,6 +6,7 @@ use dokuwiki\plugin\struct\meta\QueryBuilder;
use dokuwiki\plugin\struct\meta\QueryBuilderWhere;
use dokuwiki\plugin\struct\meta\StructException;
use dokuwiki\plugin\struct\meta\ValidationException;
use dokuwiki\Utf8\PhpString;
class User extends AbstractMultiBaseType
{
@ -20,7 +21,7 @@ class User extends AbstractMultiBaseType
/**
* @param string $rawvalue the user to validate
* @return int|string|void
* @return int|string
*/
public function validate($rawvalue)
{
@ -72,7 +73,7 @@ class User extends AbstractMultiBaseType
// check minimum length
$lookup = trim($INPUT->str('search'));
if (utf8_strlen($lookup) < $this->config['autocomplete']['mininput']) return array();
if (PhpString::strlen($lookup) < $this->config['autocomplete']['mininput']) return array();
// results wanted?
$max = $this->config['autocomplete']['maxresult'];
@ -143,7 +144,7 @@ class User extends AbstractMultiBaseType
* @param string $tablealias
* @param string $colname
* @param string $comp
* @param string|\string[] $value
* @param string|string[] $value
* @param string $op
*/
public function filter(QueryBuilderWhere $add, $tablealias, $colname, $comp, $value, $op)