diff --git a/Controller/Controller.php b/Controller/Controller.php index a1ba0da..a807d7e 100644 --- a/Controller/Controller.php +++ b/Controller/Controller.php @@ -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 = []; } diff --git a/Models/WikiCategoryMapper.php b/Models/WikiCategoryMapper.php index bb92554..c160df7 100644 --- a/Models/WikiCategoryMapper.php +++ b/Models/WikiCategoryMapper.php @@ -33,7 +33,7 @@ final class WikiCategoryMapper extends DataMapperAbstract * @var array> * @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'; } diff --git a/Models/WikiDocMapper.php b/Models/WikiDocMapper.php index 5a5e2bf..15c462b 100644 --- a/Models/WikiDocMapper.php +++ b/Models/WikiDocMapper.php @@ -33,7 +33,7 @@ final class WikiDocMapper extends DataMapperAbstract * @var array> * @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> * @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'; }