Skip to content

NewShortArray: improve error message#934

Merged
wimg merged 1 commit intodevelopfrom
feature/short-arrays-improve-error-msg
Nov 20, 2019
Merged

NewShortArray: improve error message#934
wimg merged 1 commit intodevelopfrom
feature/short-arrays-improve-error-msg

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Nov 20, 2019

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.

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.
@jrfnl jrfnl added Type: chores/QA PR: quick merge PR only contains relatively simple changes PR: ready for review labels Nov 20, 2019
@jrfnl jrfnl added this to the 9.x Next milestone Nov 20, 2019
@jrfnl jrfnl requested a review from wimg November 20, 2019 21:46
@wimg wimg merged commit 1504595 into develop Nov 20, 2019
@wimg wimg deleted the feature/short-arrays-improve-error-msg branch November 20, 2019 22:45
@jrfnl jrfnl removed PR: quick merge PR only contains relatively simple changes PR: ready for review labels Dec 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants