diff options
author | wn_ <[email protected]> | 2022-08-12 14:13:26 +0000 |
---|---|---|
committer | wn_ <[email protected]> | 2022-08-12 14:13:26 +0000 |
commit | 93fd85df6f73732d3a6ed280d26224e1877c954f (patch) | |
tree | 2b2a4fe2adb98d9e2a975b31069cca7bf66c4a04 /classes/db | |
parent | ed2cbeffcc456a86726b52d37c977a35b895968c (diff) |
Switch to direct type declarations of class properties.
Diffstat (limited to 'classes/db')
-rw-r--r-- | classes/db/migrations.php | 36 |
1 files changed, 9 insertions, 27 deletions
diff --git a/classes/db/migrations.php b/classes/db/migrations.php index aecd9186c..5f969c513 100644 --- a/classes/db/migrations.php +++ b/classes/db/migrations.php @@ -1,33 +1,15 @@ <?php class Db_Migrations { - // TODO: class properties can be switched to PHP typing if/when the minimum PHP_VERSION is raised to 7.4.0+ - /** @var string */ - private $base_filename = "schema.sql"; - - /** @var string */ - private $base_path; - - /** @var string */ - private $migrations_path; - - /** @var string */ - private $migrations_table; - - /** @var bool */ - private $base_is_latest; - - /** @var PDO */ - private $pdo; - - /** @var int */ - private $cached_version = 0; - - /** @var int */ - private $cached_max_version = 0; - - /** @var int */ - private $max_version_override; + private string $base_filename = "schema.sql"; + private string $base_path; + private string $migrations_path; + private string $migrations_table; + private bool $base_is_latest; + private PDO $pdo; + private int $cached_version = 0; + private int $cached_max_version = 0; + private int $max_version_override; function __construct() { $this->pdo = Db::pdo(); |