seboettg / citeproc-php

Full-featured CSL 1.0.1 processor for PHP
MIT License
73 stars 38 forks source link

Trouble with Collection version (hasKey Error) #155

Open atellier2 opened 1 year ago

atellier2 commented 1 year ago

Version 4 of the collection package appears to be incompatible with the current version of citeproc-php.

I have this error :

Uncaught Error: Call to undefined method Seboettg\\Collection\\ArrayList::hasKey() in /XXXXX/vendor/seboettg/citeproc-php/src/Locale/LocaleXmlParserTrait.php:132

I fix my problem with define a max version in the composer.json

"seboettg/collection": ">=3.1.0,<4.0.0",

In your opinion, is-it correct ?

glorieux-f commented 11 months ago

Thanks @atellier2, it works for me.