Skip to content

Commit 3c1cf25

Browse files
joshtrichardsCarlSchwan
authored andcommitted
chore(previews): let psalm know about $class typing
Signed-off-by: Josh <josh.t.richards@gmail.com>
1 parent bf9d97e commit 3c1cf25

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
@@ -300,6 +300,7 @@ protected function getEnabledDefaultProvider(): array {
300300
protected function registerCoreProvider(string $class, string $mimeType, array $options = []): void {
301301
if (in_array(trim($class, '\\'), $this->getEnabledDefaultProvider())) {
302302
$this->registerProviderClosure($mimeType, function () use ($class, $options): IProviderV2 {
303+
/** @var IProviderV2 $class */
303304
return new $class($options);
304305
});
305306
}

0 commit comments

Comments
 (0)