From 30c69ef147059f440d304e7da5e0236d95e424fd Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 4 May 2023 19:47:54 +0200 Subject: Use PHPStan dynamicConstantNames (#5370) https://phpstan.org/config-reference#constants Avoid a few phpstan-ignore-next-line --- app/Models/Feed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Models/Feed.php') 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 -- cgit v1.2.3