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 #20

Closed jamesshaw1987 closed 3 years ago

jamesshaw1987 commented 3 years ago

Fixes #19 by using in_array, which performs a loose comparison by default.

Ocramius commented 3 years ago

Being a bugfix, this should probably target 2.9.x

jamesshaw1987 commented 3 years ago

Ok, I'll sort a test and commit to 2.9.*.