1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-30 11:40:08 +02:00

[ticket/17176] Clean up database code to prevent test issues

PHPBB3-17176
This commit is contained in:
Marc Alexander
2023-08-20 21:12:11 +02:00
parent 96e97c264e
commit 8a2199ed6c
5 changed files with 7 additions and 6 deletions

View File

@@ -1330,7 +1330,7 @@ abstract class driver implements driver_interface
/**
* {@inheritDoc}
*/
public function clean_query_id(mixed $query_id): int|string
public function clean_query_id(mixed $query_id): int|string|null
{
// Some DBMS functions accept/return objects and/or resources instead if identifiers
// Attempting to use objects/resources as array keys will throw error, hence correctly handle all cases