Move to PHPStan level 4

This commit is contained in:
Yassine Guedidi
2025-04-05 17:34:00 +02:00
parent 31e1be4191
commit b4483023e6
22 changed files with 116 additions and 104 deletions

View File

@ -98,10 +98,10 @@ class DownloadImages
* - re-saved it (for security reason)
* - return the new local path.
*
* @param int $entryId ID of the entry
* @param string $imagePath Path to the image to retrieve
* @param string $url Url from where the image were found
* @param string $relativePath Relative local path to saved the image
* @param int $entryId ID of the entry
* @param string|null $imagePath Path to the image to retrieve
* @param string $url Url from where the image were found
* @param string $relativePath Relative local path to saved the image
*
* @return string|false Relative url to access the image from the web
*/
@ -136,7 +136,7 @@ class DownloadImages
}
$ext = $this->getExtensionFromResponse($res, $imagePath);
if (false === $res) {
if (false === $ext) {
return false;
}