wanze / SeoMaestro

🧙‍♂️A ProcessWire module helping you to manage SEO related tasks like a boss.
MIT License
34 stars 9 forks source link

Replace ?? with ? and : to support lower PHP versions to match ProcessWire #6

Closed TomS- closed 5 years ago

TomS- commented 5 years ago

It would be good if this has the same base requirement as ProcessWire.

By replacing ?? with ? and : would fix this.

wanze commented 5 years ago

I see your point, but I will not support PHP 5.x with this module. PHP 7.0 is a dependency. As a developer, I want to make use of the features of current PHP versions. PHP 5.x is no longer supported, even PHP 7.0 reaches EOL at the end of 2019. Anyone still using PHP 5.x should upgrade anyway.

See: http://php.net/supported-versions.php

By replacing ?? with ? and : would fix this.

The "Null coalescing operator" is exactly one feature I would like to use when writing PHP code :)