From cccf1266fa481a5401587a7aa0ee537cc6e2f6ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 28 Feb 2021 00:39:50 +0200 Subject: [PATCH] fixup! Refactor data reader in Protocol\Smtp to use Generator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Elan Ruusamäe --- src/Protocol/Smtp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/Smtp.php b/src/Protocol/Smtp.php index dc5315ca..f4610d2f 100644 --- a/src/Protocol/Smtp.php +++ b/src/Protocol/Smtp.php @@ -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'); }