From 18c6d78658e75bddb52819b7df95eee989acc922 Mon Sep 17 00:00:00 2001 From: fabiankohnen Date: Thu, 3 Nov 2022 11:26:54 +0100 Subject: [PATCH] fix: phpstan --- src/File.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/File.php b/src/File.php index f9351eb..8785d30 100644 --- a/src/File.php +++ b/src/File.php @@ -91,9 +91,6 @@ public function getContent() * This is to prevent confusion of e.g. rename() where the path would be relative to the php working directory. * * If the path is already absolute or has a protocol defined the path won't be modified. - * - * @param string $path - * @return string */ protected function ensureAbsolutePath(string $path): string { @@ -127,6 +124,9 @@ public function fwrite(string $data, ?int $length = null): int|false return fwrite($this->fileHandle, $data, $length); } + /** + * @param int<0, max>|null $length + */ public function fread(?int $length = null): string|false { return fread($this->fileHandle, $length);