1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 22:56:46 +02:00

Doc-comments: Move return types to declaration

This commit is contained in:
Jakub Vrana
2025-03-28 09:03:09 +01:00
parent 641ee4ff26
commit 45c045382a
21 changed files with 277 additions and 456 deletions

View File

@@ -14,19 +14,17 @@ abstract class SqlDb {
/** @var Result|bool */ protected $multi; // used for multiquery
/** Connect to server
* @return bool
*/
abstract function connect(string $server, string $username, string $password);
abstract function connect(string $server, string $username, string $password): bool;
/** Quote string to use in SQL
* @return string escaped string enclosed in '
*/
abstract function quote(string $string);
abstract function quote(string $string): string;
/** Select database
* @return bool
*/
abstract function select_db(string $database);
abstract function select_db(string $database): bool;
/** Send query
* @return Result|bool
@@ -48,9 +46,8 @@ abstract class SqlDb {
}
/** Fetch next resultset
* @return bool
*/
function next_result() {
function next_result(): bool {
return false;
}