From fd631a7a407525140985f5161a04a04482edc180 Mon Sep 17 00:00:00 2001 From: Arvydas K Date: Fri, 10 Nov 2017 12:36:44 +0200 Subject: [PATCH] added missing new keyword --- doc/book/read.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/book/read.md b/doc/book/read.md index a25c591e..565f21ca 100644 --- a/doc/book/read.md +++ b/doc/book/read.md @@ -24,7 +24,7 @@ described in the ["Working with messages"](#working-with-messages) section. ```php use Zend\Mail\Storage\Pop3; -$mail = Pop3([ +$mail = new Pop3([ 'host' => 'localhost', 'user' => 'test', 'password' => 'test', @@ -70,7 +70,7 @@ use Zend\Mail\Storage\Imap; use Zend\Mail\Storage\Pop3; // Connecting with Pop3: -$mail = Pop3([ +$mail = new Pop3([ 'host' => 'example.com', 'user' => 'test', 'password' => 'test', @@ -389,7 +389,7 @@ use Zend\Mail\Storage\Folder; use Zend\Mail\Storage\Imap; // mbox with folders: -$mail = Folder\Mbox(['dirname' => '/home/test/mail/']); +$mail = new Folder\Mbox(['dirname' => '/home/test/mail/']); // mbox with a default folder not called INBOX; also works // with the maildir and IMAP implementations.