symfony / swiftmailer-bundle

Symfony Swiftmailer Bundle
https://symfony.com/swiftmailer-bundle
MIT License
1.56k stars 151 forks source link

Do not set time/message limit on Configurable Spool if null #240

Closed stefandoorn closed 6 years ago

stefandoorn commented 6 years ago

Setting a null value for both time & message limit results in a casting to integer inside the \Swift_ConfigurableSpool class. This casts to 0 which either makes it process 0 or 1 messages (depending on when it's checked).

stefandoorn commented 6 years ago

Not sure why that single test run is failed.

stefandoorn commented 6 years ago

Tests failing on deprecation messages, but I think they are unrelated to this specific PR.

fabpot commented 6 years ago

Thank you @stefandoorn.