HHVM compatibility Fixes for Yii 2 Console Application