mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-03 04:08:01 +08:00
Fixed key.
This commit is contained in:
parent
cec05c7233
commit
4eda0a9548
@ -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');
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user