more type hints

This commit is contained in:
Robin Appelman 2021-03-09 18:01:42 +01:00
commit e9f6d00a93
28 changed files with 343 additions and 530 deletions

View file

@ -32,7 +32,7 @@ class StringBuffer {
$this->pos = 0;
}
public function push(string $data) {
public function push(string $data): int {
$this->buffer = $this->flush() . $data;
return strlen($data);
}