Implement php 7.4 type hints

This commit is contained in:
Dennis Eichhorn 2019-08-15 21:55:12 +02:00
parent 503191f5d6
commit 7cbc577c06
2 changed files with 6 additions and 6 deletions

View File

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

View File

@ -25,7 +25,7 @@ final class ItemMapper extends DataMapperAbstract
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [
protected static array $columns = [
'itemmgmt_item_id' => ['name' => 'itemmgmt_item_id', 'type' => 'int', 'internal' => 'id'],
'itemmgmt_item_no' => ['name' => 'itemmgmt_item_no', 'type' => 'string', 'internal' => 'number'],
'itemmgmt_item_segment' => ['name' => 'itemmgmt_item_segment', 'type' => 'int', 'internal' => 'segment'],
@ -38,7 +38,7 @@ final class ItemMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $table = 'itemmgmt_item';
protected static string $table = 'itemmgmt_item';
/**
* Primary field name.
@ -46,13 +46,13 @@ final class ItemMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $primaryField = 'itemmgmt_item_id'; /**
protected static string $primaryField = 'itemmgmt_item_id'; /**
* Has many relation.
*
* @var array<string, array<string, null|string>>
* @since 1.0.0
*/
protected static $hasMany = [
protected static array $hasMany = [
'media' => [
'mapper' => MediaMapper::class, /* mapper of the related object */
'table' => 'itemmgmt_item_media', /* table of the related object, null if no relation table is used (many->1) */