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

[ticket/16955] Fix most return types in phpdoc

PHPBB3-16955
This commit is contained in:
Ruben Calvo
2023-01-01 22:01:52 +01:00
parent 3e8fced5c8
commit daa2dd280c
66 changed files with 135 additions and 124 deletions

View File

@@ -86,7 +86,7 @@ class mysql_extractor extends base_extractor
* Extracts data from database table (for MySQLi driver)
*
* @param string $table_name name of the database table
* @return null
* @return void
* @throws extractor_not_initialized_exception when calling this function before init_extractor()
*/
protected function write_data_mysqli($table_name)
@@ -176,7 +176,7 @@ class mysql_extractor extends base_extractor
* Extracts database table structure (for MySQLi or MySQL 3.23.20+)
*
* @param string $table_name name of the database table
* @return null
* @return void
* @throws extractor_not_initialized_exception when calling this function before init_extractor()
*/
protected function new_write_table($table_name)
@@ -201,7 +201,7 @@ class mysql_extractor extends base_extractor
* Extracts database table structure (for MySQL versions older than 3.23.20)
*
* @param string $table_name name of the database table
* @return null
* @return void
* @throws extractor_not_initialized_exception when calling this function before init_extractor()
*/
protected function old_write_table($table_name)

View File

@@ -183,8 +183,8 @@ abstract class profilefield_base_migration extends container_aware_migration
}
/**
* @param int $start Start of staggering step
* @return mixed int start of the next step, null if the end was reached
* @param int $start Start of staggering step
* @return int|null int start of the next step, null if the end was reached
*/
public function convert_user_field_to_custom_field($start)
{
@@ -226,7 +226,7 @@ abstract class profilefield_base_migration extends container_aware_migration
if ($converted_users < $limit)
{
// No more users left, we are done...
return;
return null;
}
return $start + $limit;

View File

@@ -63,7 +63,7 @@ class config_text implements \phpbb\db\migration\tool\tool_interface
* @param string $config_name The name of the config_text setting you would
* like to update
* @param mixed $config_value The value of the config_text setting
* @return null
* @return void
* @throws \phpbb\db\migration\exception
*/
public function update($config_name, $config_value)

View File

@@ -732,7 +732,7 @@ class migrator
if ($callable_and_parameters === false)
{
return;
return null;
}
$callable = $callable_and_parameters[0];