NewShortArray: improve error message by jrfnl · Pull Request #934 · PHPCompatibility/PHPCompatibility

@jrfnl

Most error messages in PHPCompatibility follow one of the below formats:
* "Feature x is not supported in PHP x.x and below" (new features)
* "Feature x was deprecated in PHP x.x and removed in PHP x.x" (removed features)

The error message for short array syntax did not follow that typical pattern and was confusing to some - I've recently had questions about it from a few different people -, so I'm proposing to adjust the error message to be more in line with other messages in the PHPCompatibility library.

wimg

wimg approved these changes Nov 20, 2019

@wimg wimg deleted the feature/short-arrays-improve-error-msg branch

November 20, 2019 22:45

@jrfnl jrfnl mentioned this pull request

Nov 23, 2020