diff --git a/composer.json b/composer.json index eb3fb35..02afdeb 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "clivern/imap", + "name": "deblan/clivern-imap", "type": "library", "description": "Access Mailbox Using PHP IMAP", "keywords": ["clivern", "imap"], @@ -18,7 +18,7 @@ "require-dev": { "phpunit/phpunit": "5.7.27", "friendsofphp/php-cs-fixer": "2.16.1", - "squizlabs/php_codesniffer": "3.6.2" + "squizlabs/php_codesniffer": "3.5.4" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index 4850658..95e1231 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "131b1e2c7543614a4968cc50cd86d34b", + "content-hash": "d181bb008b848ce4218461baa0b1431b", "packages": [], "packages-dev": [ { @@ -457,12 +457,12 @@ }, "type": "library", "autoload": { - "files": [ - "src/DeepCopy/deep_copy.php" - ], "psr-4": { "DeepCopy\\": "src/DeepCopy/" - } + }, + "files": [ + "src/DeepCopy/deep_copy.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1037,7 +1037,6 @@ "keywords": [ "tokenizer" ], - "abandoned": true, "time": "2017-11-27T05:48:46+00:00" }, { @@ -1839,16 +1838,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.6.2", + "version": "3.5.4", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a" + "reference": "dceec07328401de6211037abbb18bda423677e26" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/5e4e71592f69da17871dba6e80dd51bce74a351a", - "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/dceec07328401de6211037abbb18bda423677e26", + "reference": "dceec07328401de6211037abbb18bda423677e26", "shasum": "" }, "require": { @@ -1886,7 +1885,7 @@ "phpcs", "standards" ], - "time": "2021-12-12T21:44:58+00:00" + "time": "2020-01-30T22:20:29+00:00" }, { "name": "symfony/console", @@ -2435,12 +2434,12 @@ } }, "autoload": { - "files": [ - "bootstrap.php" - ], "psr-4": { "Symfony\\Polyfill\\Ctype\\": "" - } + }, + "files": [ + "bootstrap.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2511,12 +2510,12 @@ } }, "autoload": { - "files": [ - "bootstrap.php" - ], "psr-4": { "Symfony\\Polyfill\\Intl\\Grapheme\\": "" - } + }, + "files": [ + "bootstrap.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2589,12 +2588,12 @@ } }, "autoload": { - "files": [ - "bootstrap.php" - ], "psr-4": { "Symfony\\Polyfill\\Intl\\Normalizer\\": "" }, + "files": [ + "bootstrap.php" + ], "classmap": [ "Resources/stubs" ] @@ -2670,12 +2669,12 @@ } }, "autoload": { - "files": [ - "bootstrap.php" - ], "psr-4": { "Symfony\\Polyfill\\Mbstring\\": "" - } + }, + "files": [ + "bootstrap.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2745,12 +2744,12 @@ } }, "autoload": { - "files": [ - "bootstrap.php" - ], "psr-4": { "Symfony\\Polyfill\\Php70\\": "" }, + "files": [ + "bootstrap.php" + ], "classmap": [ "Resources/stubs" ] @@ -2821,12 +2820,12 @@ } }, "autoload": { - "files": [ - "bootstrap.php" - ], "psr-4": { "Symfony\\Polyfill\\Php72\\": "" - } + }, + "files": [ + "bootstrap.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2894,12 +2893,12 @@ } }, "autoload": { - "files": [ - "bootstrap.php" - ], "psr-4": { "Symfony\\Polyfill\\Php73\\": "" }, + "files": [ + "bootstrap.php" + ], "classmap": [ "Resources/stubs" ] @@ -2970,12 +2969,12 @@ } }, "autoload": { - "files": [ - "bootstrap.php" - ], "psr-4": { "Symfony\\Polyfill\\Php80\\": "" }, + "files": [ + "bootstrap.php" + ], "classmap": [ "Resources/stubs" ] @@ -3261,12 +3260,12 @@ } }, "autoload": { - "files": [ - "Resources/functions.php" - ], "psr-4": { "Symfony\\Component\\String\\": "" }, + "files": [ + "Resources/functions.php" + ], "exclude-from-classmap": [ "/Tests/" ] @@ -3389,12 +3388,12 @@ "version": "1.9.1", "source": { "type": "git", - "url": "https://github.com/webmozarts/assert.git", + "url": "https://github.com/webmozart/assert.git", "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", + "url": "https://api.github.com/repos/webmozart/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389", "shasum": "" }, diff --git a/src/Core/Message/Attachment.php b/src/Core/Message/Attachment.php index a6f0e76..f1d7916 100644 --- a/src/Core/Message/Attachment.php +++ b/src/Core/Message/Attachment.php @@ -226,7 +226,7 @@ class Attachment $this->attachment['ifdparameters'] = (isset($this->part->ifdparameters)) ? $this->part->ifdparameters : false; $this->attachment['ifparameters'] = (isset($this->part->ifparameters)) ? $this->part->ifparameters : false; - if (\is_array($this->part->dparameters)) { + if (isset($this->part->dparameters) && \is_array($this->part->dparameters)) { foreach ($this->part->dparameters as $obj) { if (\in_array(mb_strtolower($obj->attribute), ['filename', 'name'], true)) { $this->attachment[mb_strtolower($obj->attribute)] = pathinfo($obj->value, PATHINFO_FILENAME); @@ -235,7 +235,7 @@ class Attachment } } - if (\is_array($this->part->parameters)) { + if (isset($this->part->parameters) && \is_array($this->part->parameters)) { foreach ($this->part->parameters as $obj) { if (\in_array(mb_strtolower($obj->attribute), ['filename', 'name'], true)) { $this->attachment[mb_strtolower($obj->attribute)] = pathinfo($obj->value, PATHINFO_FILENAME);