mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-01-27 07:38:42 +00:00
Implement php 7.4 type hints
This commit is contained in:
parent
4151c32323
commit
e79d60147b
|
|
@ -67,7 +67,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
* @var string[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $providing = [
|
||||
protected static array $providing = [
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
@ -76,5 +76,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 NavElementMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $columns = [
|
||||
protected static array $columns = [
|
||||
'nav_id' => ['name' => 'nav_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'nav_pid' => ['name' => 'nav_pid', 'type' => 'string', 'internal' => 'pid'],
|
||||
'nav_name' => ['name' => 'nav_name', 'type' => 'string', 'internal' => 'name'],
|
||||
|
|
@ -56,7 +56,7 @@ final class NavElementMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $table = 'nav';
|
||||
protected static string $table = 'nav';
|
||||
|
||||
/**
|
||||
* Primary field name.
|
||||
|
|
@ -64,5 +64,5 @@ final class NavElementMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'nav_id';
|
||||
protected static string $primaryField = 'nav_id';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user