Skip to content

Commit

Permalink
BinaryStream: add PHPStan type hint for get() parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Apr 10, 2023
1 parent fe68d3d commit 22ac3f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/BinaryStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public function getBuffer() : string{
/**
* @phpstan-impure
* @throws BinaryDataException if there are not enough bytes left in the buffer
*
* @phpstan-param int<0, max> $len
*/
public function get(int $len) : string{
if($len === 0){
Expand Down

0 comments on commit 22ac3f1

Please sign in to comment.