Fixed key.

This commit is contained in:
李铭昕 2020-01-01 09:53:14 +08:00
parent cec05c7233
commit 4eda0a9548
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ class AnnotationReaderTest extends TestCase
$loader = new ArrayLoader();
$loader->addMessages('en', 'error', [
'message' => 'Error Message',
'not exist' => ':name is not exist.',
'not_exist' => ':name is not exist.',
]);
$loader->addMessages('zh_CN', 'error', ['message' => '错误信息']);
return new Translator($loader, 'en');

View File

@ -40,7 +40,7 @@ class ErrorCodeStub extends AbstractConstants
const TRANSLATOR_ERROR_MESSAGE = 504;
/**
* @Message("error.not exist")
* @Message("error.not_exist")
*/
const TRANSLATOR_NOT_EXIST = 505;
}