Support the ongoing development of Laravel.io →
posted 4 years ago

I'm getting this error in laravel after following the 8.x illuminate/mail setup on a fresh repo clone:

Too few arguments to function Swift_Transport_EsmtpTransport::__construct(), 0 passed in \/vendor\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/SmtpTransport.php on line 35 and at least 3 expected

It was previously working, but it seems that there's problems in the swiftmailer dependency. Near as I can tell, it's calling the constructor for EsmtpTransport.php but passing nothing into it for Swift_Transport_IoBuffer $buf, array $extensionHandlers, Swift_Events_EventDispatcher $dispatcher.

Is this a known issue, is there a known fix?

Last updated 3 years ago.
0

I have already tried dump-autoload suggested in old threads as well as checking out previously working revisions and still get the same error.

0

Sign in to participate in this thread!

PHPverse

Your banner here too?

DJ djmills Joined 2 Feb 2021

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.