htmlburger / wpemerge-theme

An organized, ES6 and SASS powered theme taking advantage of the WP Emerge framework. 🚀
https://wpemerge.com/
GNU General Public License v2.0
286 stars 33 forks source link

Can't install wpemerge-theme with composer while using PHP 7.4 #43

Closed TCattd closed 4 years ago

TCattd commented 4 years ago

This is the same issue as described here https://github.com/htmlburger/wpemerge/issues/19 The same error at the end: https://tppr.me/euzLs

For the sake of order, will copy that issue here:

Version WP Emerge: 0.15.1 WordPress: 5.3 PHP: 7.4

Expected behavior Install the theme using the composer without any error.

Actual behavior I'm receiving the following error:

Installing htmlburger/wpemerge-theme (0.15.1)

Generating autoload files PHP CodeSniffer Config installed_paths set to ../../wp-coding-standards/wpcs

WPEmerge\Cli\App::createConfigJson Script WPEmerge\Cli\App::createConfigJson handling the post-create-project-cmd event terminated with an exception

[ErrorException]
Trying to access array offset on value of type int

Steps to reproduce using PHP 7.4, do: composer create-project htmlburger/wpemerge-theme my-wp-theme

Comments I haven't found any issue related to PHP 7.4 so i'm creating this one. I was able to install the theme with PHP 7.3

atanas-dev commented 4 years ago

The issue has been fixed in master and will be included in the next release - thank you for the report :+1:

In the meantime, you can trigger the failing installation steps manually to get them to work:

  1. ./vendor/bin/wpemerge config:create
  2. ./vendor/bin/wpemerge install:dependencies
  3. ./vendor/bin/wpemerge assets:build
  4. ./vendor/bin/wpemerge install