Implement php 7.4 type hints

This commit is contained in:
Dennis Eichhorn 2019-08-15 21:55:12 +02:00
parent b72abf9a06
commit c3f764ba24
3 changed files with 11 additions and 11 deletions

View File

@ -66,7 +66,7 @@ class Controller extends ModuleAbstract implements WebInterface
* @var string[]
* @since 1.0.0
*/
protected static $providing = [];
protected static array $providing = [];
/**
* Dependencies.
@ -74,5 +74,5 @@ class Controller extends ModuleAbstract implements WebInterface
* @var string[]
* @since 1.0.0
*/
protected static $dependencies = [];
protected static array $dependencies = [];
}

View File

@ -33,7 +33,7 @@ final class DashboardBoardMapper extends DataMapperAbstract
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [
protected static array $columns = [
'dashboard_board_id' => ['name' => 'dashboard_board_id', 'type' => 'int', 'internal' => 'id'],
'dashboard_board_title' => ['name' => 'dashboard_board_title', 'type' => 'string', 'internal' => 'title'],
'dashboard_board_status' => ['name' => 'dashboard_board_status', 'type' => 'int', 'internal' => 'status'],
@ -46,7 +46,7 @@ final class DashboardBoardMapper extends DataMapperAbstract
* @var array<string, array<string, null|string>>
* @since 1.0.0
*/
protected static $hasMany = [
protected static array $hasMany = [
'components' => [
'mapper' => DashboardComponentMapper::class,
'table' => 'dashboard_component',
@ -61,7 +61,7 @@ final class DashboardBoardMapper extends DataMapperAbstract
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static $belongsTo = [
protected static array $belongsTo = [
'account' => [
'mapper' => AccountMapper::class,
'src' => 'dashboard_board_account',
@ -74,7 +74,7 @@ final class DashboardBoardMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $table = 'dashboard_board';
protected static string $table = 'dashboard_board';
/**
* Primary field name.
@ -82,5 +82,5 @@ final class DashboardBoardMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $primaryField = 'dashboard_board_id';
protected static string $primaryField = 'dashboard_board_id';
}

View File

@ -32,7 +32,7 @@ final class DashboardComponentMapper extends DataMapperAbstract
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [
protected static array $columns = [
'dashboard_component_id' => ['name' => 'dashboard_component_id', 'type' => 'int', 'internal' => 'id'],
'dashboard_component_order' => ['name' => 'dashboard_component_order', 'type' => 'int', 'internal' => 'order'],
'dashboard_component_module' => ['name' => 'dashboard_component_module', 'type' => 'string', 'internal' => 'module'],
@ -46,7 +46,7 @@ final class DashboardComponentMapper extends DataMapperAbstract
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static $belongsTo = [
protected static array $belongsTo = [
'board' => [
'mapper' => DashboardBoardMapper::class,
'src' => 'dashboard_component_board',
@ -59,7 +59,7 @@ final class DashboardComponentMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $table = 'dashboard_component';
protected static string $table = 'dashboard_component';
/**
* Primary field name.
@ -67,5 +67,5 @@ final class DashboardComponentMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $primaryField = 'dashboard_component_id';
protected static string $primaryField = 'dashboard_component_id';
}