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 = []) {
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 line123
:old:
protected function extractMessages($fileName, $options) {
new:
protected function extractMessages($fileName, $options, $ignoreCategories = []) {