Plugin-php: Support php7.3 and php7.4

Created on 7 Dec 2018  路  2Comments  路  Source: prettier/plugin-php

No issue template. We need improve parser (https://github.com/glayzzle/php-parser):

php7.3

  • [x] Support trailing commas in call/isset/unset (spec https://wiki.php.net/rfc/trailing-comma-function-calls)
  • [x] Support new syntax for NowDoc and HereDoc (spec https://wiki.php.net/rfc/flexible_heredoc_nowdoc_syntaxes)
  • [x] Array Destructuring supports Reference Assignments
  • [x] Instanceof Operator accepts Literals (i think we already support, need add tests)

php7.4

Something missing? Any help welcome :+1:

enhancement help wanted upstream

Most helpful comment

@cseufert Yes! I updated the checkboxes above accordingly. Once #1291 and #1295 landed, we have full support for PHP 7.3 and 7.4! :tada: I hope we can release this real soon :wink:

All 2 comments

From the looks it closing #1346 should close this too, so does this mean that prettier should work fine for all php 7.4 features?

@cseufert Yes! I updated the checkboxes above accordingly. Once #1291 and #1295 landed, we have full support for PHP 7.3 and 7.4! :tada: I hope we can release this real soon :wink:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Selion05 picture Selion05  路  4Comments

czosel picture czosel  路  6Comments

nikulis picture nikulis  路  5Comments

mgrip picture mgrip  路  3Comments

hawkrives picture hawkrives  路  3Comments