From b870a7ef504d65b98e25444d9b58fd9c50c42ce9 Mon Sep 17 00:00:00 2001 From: Piotr Zdolski Date: Thu, 18 Jan 2024 21:11:35 +0100 Subject: [PATCH] Default whence for seek() to match PHP implementation --- src/vfsStreamFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vfsStreamFile.php b/src/vfsStreamFile.php index 04aafaac..0e6aef30 100644 --- a/src/vfsStreamFile.php +++ b/src/vfsStreamFile.php @@ -260,7 +260,7 @@ public function getBytesRead(): int /** * seeks to the given offset */ - public function seek(int $offset, int $whence): bool + public function seek(int $offset, int $whence = SEEK_SET): bool { return $this->content->seek($offset, $whence); }