Switch to direct type declarations of class properties.

This commit is contained in:
wn_
2022-08-12 14:13:26 +00:00
parent ed2cbeffcc
commit 93fd85df6f
8 changed files with 48 additions and 111 deletions

View File

@@ -1,11 +1,9 @@
<?php
class Handler implements IHandler {
// TODO: class properties can be switched to PHP typing if/when the minimum PHP_VERSION is raised to 7.4.0+
/** @var PDO */
protected $pdo;
protected PDO $pdo;
/** @var array<int|string, mixed> */
protected $args;
protected array $args;
/**
* @param array<int|string, mixed> $args