yii2 upgrade to latest version 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