zendframework / zend-expressive-zendrouter

zend-mvc Router integration for Expressive
BSD 3-Clause "New" or "Revised" License
10 stars 8 forks source link

ZendRouter integration is incompatible with HHVM #14

Closed Naktibalda closed 7 years ago

Naktibalda commented 7 years ago

Since https://github.com/zendframework/zend-expressive-zendrouter/commit/22adad805b1ef04e1ce1fb0374f31535a6947e09 ZendExpressive fails on HHVM with Fatal error: Arrays are not allowed in class constants in /.../zendframework/zend-expressive-zendrouter/src/ZendRouter.php on line 33

https://travis-ci.org/zendframework/zend-expressive-zendrouter/jobs/184049213#L340

AuraRouter and FastRoute integrations have the same issue.

weierophinney commented 7 years ago

Arrays have been allowed as class constant values since PHP 5.6.0; HHVM needs to update to allow this; they already have an issue open for it.