mirror of
https://github.com/nextcloud/server.git
synced 2026-03-21 18:11:02 -04:00
fix(TextToImage/Manager): Appease psalm
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
71a06b6bf8
commit
fa2fa47e6b
1 changed files with 1 additions and 1 deletions
|
|
@ -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.');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue