Skip to content

Commit a931c87

Browse files
committed
Add translation form CommentType, fix repository name, fix php required version
1 parent 0dcf223 commit a931c87

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "phpbenchmarks/php-7-1-benchmark",
2+
"name": "phpbenchmarks/php-7-1",
33
"license": "proprietary",
44
"type": "project",
55
"autoload": {
@@ -8,7 +8,7 @@
88
}
99
},
1010
"require": {
11-
"php": ">=7.1",
11+
"php": "^7.1",
1212
"phpbenchmarks/benchmark-rest-data": "1.0.0"
1313
}
1414
}

rest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ function encodeType(CommentType $type): array
4343
{
4444
return [
4545
'id' => $type->getId(),
46-
'name' => $type->getName()
46+
'name' => $type->getName(),
47+
'translated' => TranslationService::getTranslation('translated.3000')
4748
];
4849
}
4950

0 commit comments

Comments
 (0)