Skip to content

Commit d7ba6c2

Browse files
committed
fixes for PHP 7.4
1 parent c3bd1b2 commit d7ba6c2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Framework/FileMock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public function stream_truncate(int $size): bool
164164

165165
public function stream_set_option(int $option, int $arg1, int $arg2): bool
166166
{
167-
return true;
167+
return false;
168168
}
169169

170170

src/Framework/FileMutator.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ public function stream_seek(int $offset, int $whence = SEEK_SET): bool
169169
}
170170

171171

172-
public function stream_set_option(int $option, int $arg1, int $arg2)
172+
public function stream_set_option(int $option, int $arg1, int $arg2): bool
173173
{
174+
return false;
174175
}
175176

176177

@@ -192,7 +193,7 @@ public function stream_truncate(int $newSize): bool
192193
}
193194

194195

195-
public function stream_write(string $data): int
196+
public function stream_write(string $data)
196197
{
197198
return fwrite($this->handle, $data);
198199
}

0 commit comments

Comments
 (0)