picocms / Pico

Pico is a stupidly simple, blazing fast, flat file CMS.
http://picocms.org/
MIT License
3.81k stars 616 forks source link

php 8 and pico not good #584

Closed tuckson closed 3 years ago

tuckson commented 3 years ago

When running a default install of pice on xampp with php 8 I get this error: Fatal error: Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in C:\portable\XAMPP\xampp\htdocs\pico\vendor\twig\twig\lib\Twig\Node.php on line 42

Now in version 7 this Unparenthesized stuff was named 'depreceated' already, so the current pico will not run on php 8. I suppose

PhrozenByte commented 3 years ago

Please try Pico v3.0.0-alpha.2. There are no functional changes in comparison to stable v2.1.4 besides updated dependencies (which come with some, but rather small functional changes). This version is safe to use in production due to the very limited changeset, specifically aiming for Pico to support PHP 8.0+.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! :+1: