biigle / core

:large_blue_circle: Application core of BIIGLE
https://biigle.de
GNU General Public License v3.0
12 stars 15 forks source link

PHP 8 support #310

Closed mzur closed 2 years ago

mzur commented 3 years ago

Check if BIIGLE is already compatible with PHP 8. If not, establish compatibility. Then add it as supported version to composer.json.

mzur commented 3 years ago

The dependencies are not ready, it seems. Current issues: ramsey/uuid-doctrine and psalm/plugin-laravel require doctrine/orm ^2.5 (doctrine/dbal ~2.3) but ^3.0 is required for PHP 8.0 support.

I pushed the current state of the PHP 8 configuration to the php-8 branch. Try running this there to see if the packages are finally compatible:

composer require --ignore-platform-reqs -W doctrine/dbal ramsey/uuid-doctrine
mzur commented 2 years ago

Recently I ran a test with YAML parsers and PHP 7.4 vs. 8.0. The plain PHP YAML parser was 2-4x faster with PHP 8.0. So this update should not be neglected, as we could see substantial performance improvements!

mzur commented 2 years ago

I've merged the current master into php-8 and now psalm/plugin-laravel seems to be incompatible (it requires Laravel 8).

mzur commented 2 years ago

Continue in #409.