diff options
| author | 2023-05-04 19:47:54 +0200 | |
|---|---|---|
| committer | 2023-05-04 19:47:54 +0200 | |
| commit | 30c69ef147059f440d304e7da5e0236d95e424fd (patch) | |
| tree | 3aeec77db07a4fe23a3721e85dbe5175f98bc2b9 /app/Models/Feed.php | |
| parent | 675c56f5799ed92a6aa3a8ad3d3d8d6636f444ec (diff) | |
Use PHPStan dynamicConstantNames (#5370)
https://phpstan.org/config-reference#constants
Avoid a few phpstan-ignore-next-line
Diffstat (limited to 'app/Models/Feed.php')
| -rw-r--r-- | app/Models/Feed.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php index 6c840942b..f833b2834 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -363,7 +363,7 @@ class FreshRSS_Feed extends Minz_Model { public function load(bool $loadDetails = false, bool $noCache = false): ?SimplePie { if ($this->url != '') { // @phpstan-ignore-next-line - if (CACHE_PATH === false) { + if (CACHE_PATH == '') { throw new Minz_FileNotExistException( 'CACHE_PATH', Minz_Exception::ERROR |
