yii2 update version in the project code example
Example: update yii version with composer
composer update yiisoft/yii2 yiisoft/yii2-composer bower-asset/jquery.inputmask
composer update yiisoft/yii2 yiisoft/yii2-composer bower-asset/jquery.inputmask