Skip to content

Commit

Permalink
fix: phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianKoehnen committed Nov 3, 2022
1 parent 6532f5a commit 18c6d78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 18c6d78

Please sign in to comment.