Implement php 7.4 type hints

This commit is contained in:
Dennis Eichhorn 2019-08-15 21:55:12 +02:00
parent 4151c32323
commit e79d60147b
2 changed files with 5 additions and 5 deletions

View File

@ -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 = [];
}

View File

@ -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';
}