Switch to direct type declarations of class properties.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
<?php
|
||||
class Mailer {
|
||||
// TODO: class properties can be switched to PHP typing if/when the minimum PHP_VERSION is raised to 7.4.0+
|
||||
/** @var string */
|
||||
private $last_error = "";
|
||||
private string $last_error = "";
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $params
|
||||
|
||||
Reference in New Issue
Block a user