Implement php 7.4 type hints

This commit is contained in:
Dennis Eichhorn 2019-08-15 21:55:12 +02:00
parent 62e7b4350e
commit fb760e2d70
4 changed files with 8 additions and 8 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 = [
'Navigation',
];
@ -77,5 +77,5 @@ class Controller extends ModuleAbstract implements WebInterface
* @var string[]
* @since 1.0.0
*/
protected static $dependencies = [];
protected static array $dependencies = [];
}

View File

@ -51,7 +51,7 @@ class Issue
/**
* Created.
*
* @var \DateTime
* @var null|\DateTime
* @since 1.0.0
*/
private $created = null;

View File

@ -44,7 +44,7 @@ class Message
/**
* Created.
*
* @var \DateTime
* @var null|\DateTime
* @since 1.0.0
*/
private $created = null;

View File

@ -34,7 +34,7 @@ final class TicketMapper extends DataMapperAbstract
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [
protected static array $columns = [
'support_ticket_id' => ['name' => 'support_ticket_id', 'type' => 'int', 'internal' => 'id'],
'support_ticket_task' => ['name' => 'support_ticket_task', 'type' => 'int', 'internal' => 'task'],
];
@ -45,7 +45,7 @@ final class TicketMapper extends DataMapperAbstract
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static $ownsOne = [
protected static array $ownsOne = [
'task' => [
'mapper' => TaskMapper::class,
'src' => 'support_ticket_task',
@ -58,7 +58,7 @@ final class TicketMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $table = 'support_ticket';
protected static string $table = 'support_ticket';
/**
* Primary field name.
@ -66,5 +66,5 @@ final class TicketMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $primaryField = 'support_ticket_id';
protected static string $primaryField = 'support_ticket_id';
}