willdurand / Negotiation

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

Fix to allow for use with PHP8 #118

Open gforsythe-godaddy opened 1 year ago

gforsythe-godaddy commented 1 year ago

Previous code had a method named "match" which is now a restricted name.

gforsythe-godaddy commented 1 year ago

@willdurand (or any other maintainers) any chance at pulling this?

Nayte91 commented 1 year ago

Hello @willdurand can we accept this change? This is a very simple one that fixes few bugs for a very cheap cost.

Note that this bug still exist: PHP Parse error: syntax error, unexpected token "match" in /home/akeneo/akeneo/pim-releases/20221223101040Z/vendor/willdurand/negotiation/src/Negotiation/Negotiator.php on line 41 PHP 8.0.26 / Akeneo 6.0.71 / rest-bundle 3.0.5 / negociation 3.1.0.