Hi, sorry for my bad english :)
Drupal 8 can be installed on PHP 7.0.8 or later (php requirements), but this module require at least php 7.1 due to this "phpstorm suggestion": [] in list unpacking can be used in PHP 7.1
The error that is shown is the following:
ParseError: syntax error, unexpected '=' in Composer\Autoload\includeFile() (line 122 of /var/www/html/web/modules/contrib/lazy/src/Form/LazyForm.php).
I think it is necessary to make lazy work with php version 7.0.8 or, alternatively, declare that the minimum usable version is PHP 7.1
In the next commit a proposed patch
Comments
Comment #2
robertom commentedAttached a proposed patch
Comment #3
robertom commentedAdded an updated patch that remove also the void return type introduced in PHP 7.1 (Void functions)
without this patch, when I go to "/admin/config/content/lazy" I get this error:
Comment #4
frazras commentedThis patch works for me
Comment #6
osmanThanks @robertom.
Comment #7
sandeshyadav commentedPatch #3 works for me. Thank you so much @robertom