Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing symfony/mime dependency #323

Closed
pwoszczyk opened this issue Nov 13, 2022 · 1 comment
Closed

Missing symfony/mime dependency #323

pwoszczyk opened this issue Nov 13, 2022 · 1 comment
Labels
bug Something isn't working validated

Comments

@pwoszczyk
Copy link
Contributor

pwoszczyk commented Nov 13, 2022

symfony/mime is used as fallback in Webklex\PHPIMAP\Attachment but dependency is not defined in composer.json. It cause fatal error if symfony/http-foundation >= 5.0 and symfony/mime is not installed.

$guesser = "\Symfony\Component\Mime\MimeTypes";
/** @var Symfony\Component\Mime\MimeTypes $guesser */
$extensions = $guesser::getDefault()->getExtensions($this->getMimeType());
"require": {
    "php": ">=7.0.0",
    "ext-openssl": "*",
    "ext-json": "*",
    "ext-mbstring": "*",
    "ext-iconv": "*",
    "ext-fileinfo": "*",
    "nesbot/carbon": ">=1.0",
    "symfony/http-foundation": ">=2.8.0",
    "illuminate/pagination": ">=5.0.0"
},
@Webklex Webklex added bug Something isn't working validated labels Nov 14, 2022
@Webklex
Copy link
Owner

Webklex commented Nov 14, 2022

Hi @pwoszczyk ,
many thanks for your report and pull request!

I haven't noticed that it has moved recently. Thanks for catching it :)

Best regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working validated
Projects
None yet
Development

No branches or pull requests

2 participants