Skip to content

Commit e952d51

Browse files
chore(previews): let psalm know about $class typing
Signed-off-by: Josh <josh.t.richards@gmail.com>
1 parent 702ed13 commit e952d51

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/private/PreviewManager.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ protected function getEnabledDefaultProvider(): array {
294294
protected function registerCoreProvider(string $class, string $mimeType, array $options = []): void {
295295
if (in_array(trim($class, '\\'), $this->getEnabledDefaultProvider())) {
296296
$this->registerProviderClosure($mimeType, function () use ($class, $options): IProviderV2 {
297+
/** @var IProviderV2 $class */
297298
return new $class($options);
298299
});
299300
}

0 commit comments

Comments
 (0)