Atlas类文件生成报错Unsupported declare 'strict_types'

一,

1.1 报错内容

C:\wamp64\www\article\web_php>php ./vendor/bin/atlas-skeleton.php ./config/settings.php settings.atlas
Nested config key 'settings' found.
Nested config key 'atlas' found.

Warning: Unsupported declare 'strict_types' in C:\wamp64\www\article\web_php\vendor\atlas\cli\src\Skeleton.php on line 9

Parse error: syntax error, unexpected ':', expecting ';' or '{' in C:\wamp64\www\article\web_php\vendor\atlas\cli\src\Skeleton.php on line 40



查看PHP版本

php -v


二,切换PHP版本


三,ubuntu切换方式:
3.1, which php
3.2, /usr/bin/*
3.3, php7.2 ./vendor/bin/atlas-skeleton.php ./config/settings.php settings.atlas


评论0条