diff --git a/lib/private/Preview/Generator.php b/lib/private/Preview/Generator.php index 47f2952c6e6b8..f451ef97285eb 100644 --- a/lib/private/Preview/Generator.php +++ b/lib/private/Preview/Generator.php @@ -46,6 +46,7 @@ use OCP\Preview\IVersionedPreviewFile; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\GenericEvent; +use SysvSemaphore; class Generator { public const SEMAPHORE_ID_ALL = 0x0a11; @@ -311,7 +312,7 @@ private function getSmallImagePreview(ISimpleFolder $previewFolder, File $file, * * @param int $semId * @param int $concurrency - * @return false|resource the semaphore on success or false on failure + * @return false|resource|SysvSemaphore the semaphore on success or false on failure */ public static function guardWithSemaphore(int $semId, int $concurrency) { if (!extension_loaded('sysvsem')) { @@ -330,7 +331,7 @@ public static function guardWithSemaphore(int $semId, int $concurrency) { /** * Releases the semaphore acquired from {@see Generator::guardWithSemaphore()}. * - * @param resource|bool $semId the semaphore identifier returned by guardWithSemaphore + * @param SysvSemaphore|bool $semId the semaphore identifier returned by guardWithSemaphore * @return bool */ public static function unguardWithSemaphore($semId): bool {