1
0
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:
wn_
2021-11-12 21:17:31 +00:00
parent 2c41bc7fbc
commit d3a81f598b
6 changed files with 115 additions and 49 deletions

View File

@@ -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