lajax / yii2-translate-manager

Translation Manager
MIT License
227 stars 90 forks source link

Declaration \services\scanners\ScannerFile::extractMessages() incompatible #13

Closed sadgmbh closed 9 years ago

sadgmbh commented 9 years ago

With latest Yii2 2.0.4-dev this error occurs on scan and optimize page:

PHP Strict Warning – yii\base\ErrorException Declaration of lajax\translatemanager\services\scanners\ScannerFile::extractMessages() should be compatible with yii\console\controllers\MessageController::extractMessages($fileName, $translator, $ignoreCategories = Array)

To fix it, just alter lajax\translatemanager\services\scanners\ScannerFile in line 123:

old: protected function extractMessages($fileName, $options) {

new: protected function extractMessages($fileName, $options, $ignoreCategories = []) {

lajax commented 9 years ago

Hi!

Thanks for letting me know. I'll fix this today or this week.

Best Regards, Lajax