mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
fix(psalm issues)
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
f27d2bf352
commit
997f6c33cd
1 changed files with 4 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ use RuntimeException;
|
|||
use Throwable;
|
||||
|
||||
class Manager implements IManager {
|
||||
/** @var ?IProvider[] */
|
||||
/** @var ?list<IProvider> */
|
||||
private ?array $providers = null;
|
||||
private IAppData $appData;
|
||||
|
||||
|
|
@ -83,7 +83,9 @@ class Manager implements IManager {
|
|||
foreach ($context->getTextToImageProviders() as $providerServiceRegistration) {
|
||||
$class = $providerServiceRegistration->getService();
|
||||
try {
|
||||
$this->providers[] = $this->serverContainer->get($class);
|
||||
/** @var IProvider $provider */
|
||||
$provider = $this->serverContainer->get($class);
|
||||
$this->providers[] = $provider;
|
||||
} catch (Throwable $e) {
|
||||
$this->logger->error('Failed to load Text to image provider ' . $class, [
|
||||
'exception' => $e,
|
||||
|
|
|
|||
Loading…
Reference in a new issue