From 1c87612a5a933e1de47cea4705c7db1be110b7d8 Mon Sep 17 00:00:00 2001 From: Guillaume Sainthillier Date: Mon, 16 Dec 2024 16:12:25 +0100 Subject: [PATCH] add missing phpdoc attributes --- src/Server.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Server.php b/src/Server.php index 643b514..66af12d 100644 --- a/src/Server.php +++ b/src/Server.php @@ -169,6 +169,8 @@ public function getSourcePath(string $path): string * @param string $path Image path. * * @return bool Whether the source file exists. + * + * @throws FileNotFoundException */ public function sourceFileExists(string $path): bool { @@ -328,6 +330,8 @@ public function getCachePathCallable(): ?\Closure * @param array $params Image manipulation params. * * @return string Cache path. + * + * @throws FileNotFoundException */ public function getCachePath(string $path, array $params = []): string { @@ -525,6 +529,8 @@ public function getResponseFactory(): ?ResponseFactoryInterface * @return mixed Image response. * * @throws \InvalidArgumentException + * @throws FileNotFoundException + * @throws FilesystemException */ public function getImageResponse(string $path, array $params): mixed { @@ -545,6 +551,7 @@ public function getImageResponse(string $path, array $params): mixed * * @return string Base64 encoded image. * + * @throws FileNotFoundException * @throws FilesystemException */ public function getImageAsBase64(string $path, array $params): string @@ -567,6 +574,8 @@ public function getImageAsBase64(string $path, array $params): string * @param array $params Image manipulation params. * * @throws \InvalidArgumentException + * @throws FileNotFoundException + * @throws FilesystemException */ public function outputImage(string $path, array $params): void {