Limenius / ReactRenderer

Client and Server-side React rendering from PHP
MIT License
238 stars 37 forks source link

BC breaks with PHP v5.5 and v5.6 #39

Open ryanolee opened 4 years ago

ryanolee commented 4 years ago

Issue

Changes in recent version of react renderer break backwards compatibility with PHP versions 5.x. The composer.json file references a minimum compatibility with PHP 5.5 (https://github.com/Limenius/ReactRenderer/blob/e1bf24deb09f1009fdec7e90cf29378220351fe7/composer.json#L22) However there are a number of changes in the repo that do not conform to valid PHP 5 syntax. (Using features that were only added in PHP v7+)

Versions effected

How to recreate

Install package in any version of php5 and follow a normal use case

How we might fix it