PHP 7 has many improvements over PHP 5.
Grouped imports, null coalescing (??) and combined comparison (spaceship operator, <=>) are used with this PR, type declarations are still on the TODO-list.
However, StyleCi doesn't seem to support PHP 7 yet, so it just gives an error.
Things for discussion:
should we support PHP 5? I personally don't think so.
how extensively should type declarations be used? I think we should use scalar type hinting in the Chess API (instead of is_int, ...) but not return type declaration except for interfaces.
PHP 7 has many improvements over PHP 5. Grouped imports, null coalescing (??) and combined comparison (spaceship operator, <=>) are used with this PR, type declarations are still on the TODO-list.
However, StyleCi doesn't seem to support PHP 7 yet, so it just gives an error.
Things for discussion: