mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/16668] Add return type hinting
PHPBB3-16668
This commit is contained in:
@@ -94,7 +94,7 @@ class schema_generator
|
|||||||
* @throws UnexpectedValueException If a dependency can't be resolved or there are circular
|
* @throws UnexpectedValueException If a dependency can't be resolved or there are circular
|
||||||
* dependencies between migrations.
|
* dependencies between migrations.
|
||||||
*/
|
*/
|
||||||
public function get_schema()
|
public function get_schema() : array
|
||||||
{
|
{
|
||||||
if (!empty($this->tables))
|
if (!empty($this->tables))
|
||||||
{
|
{
|
||||||
@@ -316,7 +316,7 @@ class schema_generator
|
|||||||
*
|
*
|
||||||
* @return Closure|null The value transformation callback or null if it is not needed.
|
* @return Closure|null The value transformation callback or null if it is not needed.
|
||||||
*/
|
*/
|
||||||
private static function get_value_transform(string $change_type, string $schema_type)
|
private static function get_value_transform(string $change_type, string $schema_type) : ?Closure
|
||||||
{
|
{
|
||||||
if ($change_type !== 'add')
|
if ($change_type !== 'add')
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user