diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-10-22 12:38:40 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2023-10-22 12:38:40 +0200 |
commit | fa2fa47e6b079a1cd6284179311ed7d2e1998e4f (patch) | |
tree | aebcae1d10d5bf97631a02d4ffa7925e30787aa8 /lib/private | |
parent | 71a06b6bf803b325a7b440be7d0c7d691fb05a04 (diff) | |
download | nextcloud-server-fa2fa47e6b079a1cd6284179311ed7d2e1998e4f.tar.gz nextcloud-server-fa2fa47e6b079a1cd6284179311ed7d2e1998e4f.zip |
fix(TextToImage/Manager): Appease psalm
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/TextToImage/Manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/TextToImage/Manager.php b/lib/private/TextToImage/Manager.php index f59a5b27b9f..4d6c6b75da6 100644 --- a/lib/private/TextToImage/Manager.php +++ b/lib/private/TextToImage/Manager.php @@ -158,7 +158,7 @@ class Manager implements IManager { $file = $folder->newFile((string) $i); $files[] = $file; $resources[] = $file->write(); - if ($resources[count($resources) - 1] === false) { + if (!is_resource($resources[count($resources) - 1])) { throw new RuntimeException('Text2Image generation using provider "' . $provider->getName() . '" failed: Couldn\'t open file to write.'); } } |