diff --git a/Controller/Controller.php b/Controller/Controller.php index 77ef3bf..ea0e353 100644 --- a/Controller/Controller.php +++ b/Controller/Controller.php @@ -67,7 +67,7 @@ class Controller extends ModuleAbstract implements WebInterface * @var string[] * @since 1.0.0 */ - protected static $providing = []; + protected static array $providing = []; /** * Dependencies. @@ -75,5 +75,5 @@ class Controller extends ModuleAbstract implements WebInterface * @var string[] * @since 1.0.0 */ - protected static $dependencies = []; + protected static array $dependencies = []; } diff --git a/Models/Audit.php b/Models/Audit.php index 7df8108..8bab01a 100644 --- a/Models/Audit.php +++ b/Models/Audit.php @@ -105,7 +105,7 @@ class Audit /** * Created at. * - * @var \DateTime + * @var null|\DateTime * @since 1.0.0 */ private $createdAt = null; diff --git a/Models/AuditMapper.php b/Models/AuditMapper.php index dd7158b..464e16c 100644 --- a/Models/AuditMapper.php +++ b/Models/AuditMapper.php @@ -34,7 +34,7 @@ final class AuditMapper extends DataMapperAbstract * @var array> * @since 1.0.0 */ - protected static $columns = [ + protected static array $columns = [ 'auditor_audit_id' => ['name' => 'auditor_audit_id', 'type' => 'int', 'internal' => 'id'], 'auditor_audit_created_by' => ['name' => 'auditor_audit_created_by', 'type' => 'int', 'internal' => 'createdBy'], 'auditor_audit_created_at' => ['name' => 'auditor_audit_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'], @@ -54,7 +54,7 @@ final class AuditMapper extends DataMapperAbstract * @var array> * @since 1.0.0 */ - protected static $belongsTo = [ + protected static array $belongsTo = [ 'createdBy' => [ 'mapper' => AccountMapper::class, 'src' => 'auditor_audit_created_by', @@ -67,7 +67,7 @@ final class AuditMapper extends DataMapperAbstract * @var string * @since 1.0.0 */ - protected static $table = 'auditor_audit'; + protected static string $table = 'auditor_audit'; /** * Primary field name. @@ -75,7 +75,7 @@ final class AuditMapper extends DataMapperAbstract * @var string * @since 1.0.0 */ - protected static $primaryField = 'auditor_audit_id'; + protected static string $primaryField = 'auditor_audit_id'; /** * Created at. @@ -83,5 +83,5 @@ final class AuditMapper extends DataMapperAbstract * @var string * @since 1.0.0 */ - protected static $createdAt = 'auditor_audit_created_at'; + protected static string $createdAt = 'auditor_audit_created_at'; }