Make psalm happy

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2021-03-22 20:09:25 +01:00
parent 3fd9d0dc50
commit e12e2ae8a3
2 changed files with 4 additions and 3 deletions

View File

@ -48,6 +48,7 @@ use OC\DB\QueryBuilder\FunctionBuilder\SqliteFunctionBuilder;
use OC\DB\ResultAdapter;
use OC\SystemConfig;
use OCP\DB\IResult;
use OCP\DB\QueryBuilder\ICompositeExpression;
use OCP\DB\QueryBuilder\ILiteral;
use OCP\DB\QueryBuilder\IParameter;
use OCP\DB\QueryBuilder\IQueryBuilder;
@ -282,7 +283,7 @@ class QueryBuilder implements IQueryBuilder {
'app' => 'core',
]);
}
$result = $this->queryBuilder->execute();
if (is_int($result)) {
return $result;
@ -720,7 +721,7 @@ class QueryBuilder implements IQueryBuilder {
* @param string $fromAlias The alias that points to a from clause.
* @param string $join The table name to join.
* @param string $alias The alias of the join table.
* @param string $condition The condition for the join.
* @param string|null|ICompositeExpression $condition The condition for the join.
*
* @return $this This QueryBuilder instance.
*/

View File

@ -492,7 +492,7 @@ interface IQueryBuilder {
* @param string $fromAlias The alias that points to a from clause.
* @param string $join The table name to join.
* @param string $alias The alias of the join table.
* @param string $condition The condition for the join.
* @param string|null|ICompositeExpression $condition The condition for the join.
*
* @return $this This QueryBuilder instance.
* @since 8.2.0