Skip to content

Commit 9c984af

Browse files
committed
missing or invalid types fixed
1 parent 6d75c38 commit 9c984af

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

src/IMAP/Attachment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ protected function fetch() {
171171
/**
172172
* Save the attachment content to your filesystem
173173
*
174-
* @param null $path
175-
* @param null $filename
174+
* @param string|null $path
175+
* @param string|null $filename
176176
*
177177
* @return boolean
178178
*/

src/IMAP/Client.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
class Client {
2727

2828
/**
29-
* @var bool|resource
29+
* @var boolean|resource
3030
*/
3131
public $connection = false;
3232

@@ -145,7 +145,7 @@ public function setConfig(array $config) {
145145
/**
146146
* Get the current imap resource
147147
*
148-
* @return resource
148+
* @return resource|boolean
149149
*/
150150
public function getConnection() {
151151
return $this->connection;
@@ -251,7 +251,7 @@ public function disconnect() {
251251
*/
252252
public function getFolder($folder_name, $attributes = 32, $delimiter = null) {
253253

254-
$delimiter = $delimiter == null ? config('imap.options.delimiter', '/') : $delimiter;
254+
$delimiter = $delimiter === null ? config('imap.options.delimiter', '/') : $delimiter;
255255

256256
$oFolder = new Folder($this, (object) [
257257
'name' => $this->getAddress().$folder_name,
@@ -266,8 +266,8 @@ public function getFolder($folder_name, $attributes = 32, $delimiter = null) {
266266
* Get folders list.
267267
* If hierarchical order is set to true, it will make a tree of folders, otherwise it will return flat array.
268268
*
269-
* @param bool $hierarchical
270-
* @param null $parent_folder
269+
* @param boolean $hierarchical
270+
* @param string|null $parent_folder
271271
*
272272
* @return FolderCollection
273273
* @throws ConnectionFailedException
@@ -315,8 +315,7 @@ public function openFolder(Folder $folder, $attempts = 3) {
315315

316316
/**
317317
* Create a new Folder
318-
*
319-
* @param $name
318+
* @param string $name
320319
*
321320
* @return bool
322321
*/

src/IMAP/Folder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ public function move($target_mailbox) {
402402
/**
403403
* Returns status information on a mailbox
404404
*
405-
* @param string $options
405+
* @param integer $options
406406
* SA_MESSAGES - set $status->messages to the number of messages in the mailbox
407407
* SA_RECENT - set $status->recent to the number of recent messages in the mailbox
408408
* SA_UNSEEN - set $status->unseen to the number of unseen (new) messages in the mailbox

0 commit comments

Comments
 (0)