mirror of
https://github.com/Karaka-Management/oms-Tag.git
synced 2026-02-07 19:28:40 +00:00
Implement php 7.4 type hints
This commit is contained in:
parent
9b2d68767f
commit
ddd6b9adaf
|
|
@ -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 TagMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $columns = [
|
||||
protected static array $columns = [
|
||||
'tag_id' => ['name' => 'tag_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'tag_title' => ['name' => 'tag_title', 'type' => 'string', 'internal' => 'title'],
|
||||
'tag_color' => ['name' => 'tag_color', 'type' => 'string', 'internal' => 'color'],
|
||||
|
|
@ -48,7 +48,7 @@ final class TagMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $belongsTo = [
|
||||
protected static array $belongsTo = [
|
||||
'createdBy' => [
|
||||
'mapper' => AccountMapper::class,
|
||||
'src' => 'tag_created_by',
|
||||
|
|
@ -61,7 +61,7 @@ final class TagMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $table = 'tag';
|
||||
protected static string $table = 'tag';
|
||||
|
||||
/**
|
||||
* Primary field name.
|
||||
|
|
@ -69,5 +69,5 @@ final class TagMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'tag_id';
|
||||
protected static string $primaryField = 'tag_id';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user