laminas / laminas-mime

Create and parse MIME messages and parts
https://docs.laminas.dev/laminas-mime/
BSD 3-Clause "New" or "Revised" License
29 stars 23 forks source link

Prevent adding duplicate parts to message #19 #23

Closed jamesshaw1987 closed 2 years ago

jamesshaw1987 commented 3 years ago

Fixes #19 by using in_array, which performs a loose comparison by default. Add unit test to cover duplicate part addition, alongside existing test that covers adding the exact same part multiple times.

jamesshaw1987 commented 3 years ago

Error: Input required and not supplied: repo-token

I'm unsure how to resolve this.