Sage: Sage is not compatible with PHP 7.3

Created on 7 Apr 2019  路  4Comments  路  Source: roots/sage

Description

Sage is not compatible with PHP 7.3.

As seen here:

https://discourse.roots.io/t/error-on-installing-sage-with-composer-on-mac/14951

Steps to reproduce

  1. install php 7.3 + WordPress + Sage theme
  2. try and run composer install
  3. Error:
    [ErrorException]
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Expected behavior: the install works

Actual behavior: See error message

Reproduces how often: 100%

Versions

You can get this information from referencing CHANGELOG.md. Also, please include the OS and what version of the OS you're running.

Additional information

Any additional information, configuration or data that might be necessary to reproduce the issue.

Most helpful comment

You're getting this error because you're running an outdated version of Composer.
Source: https://github.com/composer/composer/issues/7783

All 4 comments

I'm unable to reproduce this with PHP 7.3.2 in WSL.

What version of WordPress are you installing? I haven't seen this error related to Sage, but I've encountered it with either WP core or a plugin; can't remember which.

Could you share the full output in case there's anything useful in it? Pretty sure there are no switch statements in Sage itself, which means it can't be the direct origin of this error.

You're getting this error because you're running an outdated version of Composer.
Source: https://github.com/composer/composer/issues/7783

Thanks, that was indeed the case, the fix was to install composer again https://getcomposer.org/download/ and then make the new working version available globally: sudo mv composer.phar /usr/local/bin/composer

In the future you could probably just do sudo composer self-update.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

buckedup picture buckedup  路  3Comments

evertsemeijn picture evertsemeijn  路  3Comments

emilsgulbis picture emilsgulbis  路  6Comments

emilsgulbis picture emilsgulbis  路  6Comments

retlehs picture retlehs  路  3Comments