diff options
| author | 2023-10-30 20:47:27 +0100 | |
|---|---|---|
| committer | 2023-10-30 20:47:27 +0100 | |
| commit | 06d00995049db9c7b915f67cfd4a5708aace458f (patch) | |
| tree | 0176ca9761b34d72ffd597bd96da3c3ae4912d86 /app/Models/BooleanSearch.php | |
| parent | 4a02352ccc1b313ce967415c6ac10a32aba1893a (diff) | |
Require PHP 7.4+ (#5720)
* Require PHP 7.4+
https://github.com/FreshRSS/FreshRSS/discussions/5474
* Update Docker oldest
Alpine 3.13 with PHP 7.4.26
* Add missing packets to Docker oldest
* Update to typed properties
https://php.net/migration74.new-features#migration74.new-features.core.typed-properties
* More types
Diffstat (limited to 'app/Models/BooleanSearch.php')
| -rw-r--r-- | app/Models/BooleanSearch.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/Models/BooleanSearch.php b/app/Models/BooleanSearch.php index 03fec4cb7..d8c47c878 100644 --- a/app/Models/BooleanSearch.php +++ b/app/Models/BooleanSearch.php @@ -5,16 +5,14 @@ */ class FreshRSS_BooleanSearch { - /** @var string */ - private $raw_input = ''; + private string $raw_input = ''; /** @var array<FreshRSS_BooleanSearch|FreshRSS_Search> */ - private $searches = []; + private array $searches = []; /** * @phpstan-var 'AND'|'OR'|'AND NOT' - * @var string */ - private $operator; + private string $operator; /** @param 'AND'|'OR'|'AND NOT' $operator */ public function __construct(string $input, int $level = 0, string $operator = 'AND') { |
