yiisoft / yii2-app-basic

Yii 2.0 Basic Application Template
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
656 stars 787 forks source link

Older version in composer.json after installing latest version #235

Closed Yousha closed 4 years ago

Yousha commented 4 years ago

What steps will reproduce the problem?

1- Open system's terminal/console. 2- Enter the following command: composer create-project --prefer-dist yiisoft/yii2-app-basic basic

What's expected?

Install latest version of "yiisoft/yii2-app-basic", both in vendor folder and composer.json file.

What do you get instead?

Yii2 installs latest version in Vendor folder, but old one in composer.json file.

composer.json file: "yiisoft/yii2": "~2.0.14",

Vendor folder: yiisoft/yii2 2.0.37

Additional info

`Creating a "yiisoft/yii2-app-basic" project at "./basic" Installing yiisoft/yii2-app-basic (2.0.37)

Q A
Yii vesion 2.0.37
PHP version 7.4
Operating system Windows 10 64bit
samdark commented 4 years ago

~2.0.14 means 2.0.14 and up. That's correct.