composer require yiisoft/yii2
OR
composer create-project yiisoft/yii2-advanced-app advanced
Yii2 is installed and reports its own version as 2.0.31
Yii2 is installed, and reports it own version as 2.0.32-dev
I was working on upgrading a project ot hte latest depenencies, including Yii 2.0.31, and had been looking for a while why Composer was installing 2.0.32-dev.
Intially I though composer was resolving the depencies to the wrong versions.
but according to composer.lock, version 2.0.31 is installed.
Reading further composer.lock specifies reference b9fa3d184b41fb847aa7ae8b447d59b243c72d45 for both source and dist.
Yii 2.0.31 was released with commit 0329b2db8bbf9719b1add17d6defd2d6045b4f09.
Yii2 commit: release version 2.0.31
Yii2 commit: prepare for next release
Looking through the changes from the 'prepare for next release' commit, that is the version I got, as CHANGELOG.md also already includes the new _2.0.32 under development_ section (which did not exist in the previous commit).
| Q | A
| ---------------- | ---
| Yii version | 2.0.31 (expected)
| PHP version | 7.2.4
| Operating system | Windows 10 Version 1909 Professional 64-bit
Tags are done correctly:
"prepare for next release" commits are made after release was tagged.
I updated Yii to 2.0.31 but files inside from 596bcff instead d97a160
Looks like packagist glitch.
Could be. Anyway, tags are correct and I see nothing we can do to fix your issue.
Tag is incorrect in subsplit: https://github.com/yiisoft/yii2-framework/commits/2.0.31
BTW: it already happened in the past: https://forum.yiiframework.com/t/yii-2-0-18-released/125842
Aha!
Most helpful comment
Fixed https://github.com/yiisoft/yii2-framework/commits/2.0.31. Thanks!