bseddon / XBRL

Classes that implement the XBRL 2.1, XDT, Formulas, Generics, XFI and other XBRL specifications
GNU General Public License v3.0
41 stars 16 forks source link

PHP 8 not supported #18

Open itajackass opened 1 year ago

itajackass commented 1 year ago

Hi, if I try to launch:

composer require lyquidity/xbrl:dev-master lyquidity/xpath2:dev-master lyquidity/utilities:dev-master lyquidity/xml:dev-master --prefer-dist

i get error:

 Package lyquidity/xpath2 at version dev-master has requirements incompatible with your PHP version, PHP extensions
 and Composer version:
   - lyquidity/xpath2 dev-master requires php ^7.0 which does not match your installed version 8.0.13.

Any chance to get all compatible with php 8?

bseddon commented 1 year ago

The XPath2 package is used to support XBRL formulas. Formulas have not been tested with PHP 8.x. My guess is that if the constraint is relaxed it will be used with 8.1 then logs will be filled with deprecation messages. I'll look at checking with 8.x but its not something I'll be able to do today.

bseddon commented 1 year ago

Last night the automated test suite ran using PHP 8.0.13. Because all the tests completed successfully, the composer.json has been updated to allow PHP versions >=7.0