mirror of
https://github.com/Karaka-Management/oms-Support.git
synced 2026-01-28 08:18:39 +00:00
Implement php 7.4 type hints
This commit is contained in:
parent
62e7b4350e
commit
fb760e2d70
|
|
@ -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 = [];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class Issue
|
|||
/**
|
||||
* Created.
|
||||
*
|
||||
* @var \DateTime
|
||||
* @var null|\DateTime
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $created = null;
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ class Message
|
|||
/**
|
||||
* Created.
|
||||
*
|
||||
* @var \DateTime
|
||||
* @var null|\DateTime
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $created = null;
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user