mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 19:41:29 +00:00
Switch class properties from PHP typing to PHPDoc for compatibility with PHP < 7.4.0
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
class DiskCache {
|
||||
private string $dir;
|
||||
// TODO: class properties can be switched to PHP typing if/when the minimum PHP_VERSION is raised to 7.4.0+
|
||||
/** @var string */
|
||||
private $dir;
|
||||
|
||||
/**
|
||||
* https://stackoverflow.com/a/53662733
|
||||
|
||||
Reference in New Issue
Block a user