mirror of
https://github.com/Karaka-Management/oms-Knowledgebase.git
synced 2026-01-27 00:38:40 +00:00
Implement php 7.4 type hints
This commit is contained in:
parent
1fd7f75968
commit
12250706bf
|
|
@ -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 = [];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ final class WikiCategoryMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $columns = [
|
||||
protected static array $columns = [
|
||||
'wiki_category_id' => ['name' => 'wiki_category_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'wiki_category_name' => ['name' => 'wiki_category_name', 'type' => 'string', 'internal' => 'name'],
|
||||
'wiki_category_parent' => ['name' => 'wiki_category_parent', 'type' => 'int', 'internal' => 'parent'],
|
||||
|
|
@ -45,7 +45,7 @@ final class WikiCategoryMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $table = 'wiki_category';
|
||||
protected static string $table = 'wiki_category';
|
||||
|
||||
/**
|
||||
* Primary field name.
|
||||
|
|
@ -53,5 +53,5 @@ final class WikiCategoryMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'wiki_category_id';
|
||||
protected static string $primaryField = 'wiki_category_id';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ final class WikiDocMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $columns = [
|
||||
protected static array $columns = [
|
||||
'wiki_article_id' => ['name' => 'wiki_article_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'wiki_article_title' => ['name' => 'wiki_article_title', 'type' => 'string', 'internal' => 'name'],
|
||||
'wiki_article_language' => ['name' => 'wiki_article_language', 'type' => 'string', 'internal' => 'language'],
|
||||
|
|
@ -51,7 +51,7 @@ final class WikiDocMapper extends DataMapperAbstract
|
|||
* @since 1.0.0
|
||||
*/
|
||||
/*
|
||||
protected static $hasMany = [
|
||||
protected static array $hasMany = [
|
||||
'badges' => [
|
||||
'mapper' => BadgeMapper::class,
|
||||
'table' => 'wiki_article_badge',
|
||||
|
|
@ -66,7 +66,7 @@ final class WikiDocMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, null|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $ownsOne = [
|
||||
protected static array $ownsOne = [
|
||||
'category' => [
|
||||
'mapper' => WikiCategoryMapper::class,
|
||||
'dst' => 'wiki_article_category',
|
||||
|
|
@ -79,7 +79,7 @@ final class WikiDocMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $table = 'wiki_article';
|
||||
protected static string $table = 'wiki_article';
|
||||
|
||||
/**
|
||||
* Created at.
|
||||
|
|
@ -87,7 +87,7 @@ final class WikiDocMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $createdAt = 'wiki_article_created_at';
|
||||
protected static string $createdAt = 'wiki_article_created_at';
|
||||
|
||||
/**
|
||||
* Primary field name.
|
||||
|
|
@ -95,5 +95,5 @@ final class WikiDocMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'wiki_article_id';
|
||||
protected static string $primaryField = 'wiki_article_id';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user