Skip to content

Commit 6414540

Browse files
committed
fix: typo, replace fgets with fgetc
1 parent 60077a1 commit 6414540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ResourceIteratorAggregate.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct($resource, private bool $closeResource = false, ?Clo
4444
/**
4545
* @param resource $resource
4646
*/
47-
static fn ($resource): bool|string => fgets($resource);
47+
static fn ($resource): bool|string => fgetc($resource);
4848
}
4949

5050
/**

0 commit comments

Comments
 (0)