willdurand / Negotiation

Content Negotiation tools for PHP.
https://williamdurand.fr/Negotiation/
MIT License
1.41k stars 62 forks source link

Match class collides with PHP8's match expression #110

Closed agustingomes closed 3 years ago

agustingomes commented 3 years ago

Hi,

During the process of upgrading to PHP 8, we came across an issue caused by the introduction of the new match expression.

the class Match collides with what is now a reserved name, in this case, match.

an example of this can be seen here: https://github.com/mezzio/mezzio-problem-details/issues/10

Let me know if you need more details. I could probably pick this up in the upcoming days

agustingomes commented 3 years ago

will close this issue. I missed this was fixed in the 3.0.0 release.