Skip to content

Commit

Permalink
fixup! Refactor data reader in Protocol\Smtp to use Generator
Browse files Browse the repository at this point in the history
Signed-off-by: Elan Ruusamäe <[email protected]>
  • Loading branch information
glensc committed Feb 27, 2021
1 parent dd7b423 commit cccf126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Protocol/Smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public function data($data)
$this->_send('DATA');
$this->_expect(354, 120); // Timeout set for 2 minutes as per RFC 2821 4.5.3.2

$chunkReader = static function(string $data, int $chunkSize = 4096) {
$chunkReader = static function (string $data, int $chunkSize = 4096) {
if (($fp = fopen("php://temp", "r+")) === false) {
throw new Exception\RuntimeException('cannot fopen');
}
Expand Down

0 comments on commit cccf126

Please sign in to comment.