Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'docs/#180-add-missing-new-operator-in-docs' into develop
Browse files Browse the repository at this point in the history
Close #180
  • Loading branch information
Ocramius committed Mar 1, 2018
2 parents 8ca640a + a7a0d90 commit 7fe57dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/book/read.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 7fe57dc

Please sign in to comment.