Implement php 7.4 type hints

This commit is contained in:
Dennis Eichhorn 2019-08-15 21:55:12 +02:00
parent 4e70dbb181
commit 843e753ee6
3 changed files with 10 additions and 10 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 CommentListMapper extends DataMapperAbstract
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [
protected static array $columns = [
'comments_list_id' => ['name' => 'comments_list_id', 'type' => 'int', 'internal' => 'id'],
];
@ -43,7 +43,7 @@ final class CommentListMapper extends DataMapperAbstract
* @var array<string, array<string, null|string>>
* @since 1.0.0
*/
protected static $hasMany = [
protected static array $hasMany = [
'comments' => [
'mapper' => CommentMapper::class,
'table' => 'comments_comment',
@ -58,7 +58,7 @@ final class CommentListMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $table = 'comments_list';
protected static string $table = 'comments_list';
/**
* Primary field name.
@ -66,5 +66,5 @@ final class CommentListMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $primaryField = 'comments_list_id';
protected static string $primaryField = 'comments_list_id';
}

View File

@ -33,7 +33,7 @@ final class CommentMapper extends DataMapperAbstract
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [
protected static array $columns = [
'comments_comment_id' => ['name' => 'comments_comment_id', 'type' => 'int', 'internal' => 'id'],
'comments_comment_title' => ['name' => 'comments_comment_title', 'type' => 'string', 'internal' => 'title'],
'comments_comment_status' => ['name' => 'comments_comment_status', 'type' => 'int', 'internal' => 'status'],
@ -51,7 +51,7 @@ final class CommentMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $table = 'comments_comment';
protected static string $table = 'comments_comment';
/**
* Created at.
@ -59,7 +59,7 @@ final class CommentMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $createdAt = 'comments_comment_created_at';
protected static string $createdAt = 'comments_comment_created_at';
/**
* Primary field name.
@ -67,5 +67,5 @@ final class CommentMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $primaryField = 'comments_comment_id';
protected static string $primaryField = 'comments_comment_id';
}