Stop auto-translating string descriptions/usages for commands

Require usage of Translatable for translations.
This commit is contained in:
Dylan K. Taylor
2021-09-11 16:46:40 +01:00
parent b65e3c69b1
commit 3b7580688c
43 changed files with 104 additions and 131 deletions

View File

@ -81,7 +81,7 @@ parameters:
path: ../../../src/permission/PermissionParser.php
-
message: "#^Parameter \\#1 \\$description of method pocketmine\\\\command\\\\Command\\:\\:setDescription\\(\\) expects string, mixed given\\.$#"
message: "#^Parameter \\#1 \\$description of method pocketmine\\\\command\\\\Command\\:\\:setDescription\\(\\) expects pocketmine\\\\lang\\\\Translatable\\|string, mixed given\\.$#"
count: 1
path: ../../../src/plugin/PluginBase.php
@ -91,7 +91,7 @@ parameters:
path: ../../../src/plugin/PluginBase.php
-
message: "#^Parameter \\#1 \\$usage of method pocketmine\\\\command\\\\Command\\:\\:setUsage\\(\\) expects string, mixed given\\.$#"
message: "#^Parameter \\#1 \\$usage of method pocketmine\\\\command\\\\Command\\:\\:setUsage\\(\\) expects pocketmine\\\\lang\\\\Translatable\\|string, mixed given\\.$#"
count: 1
path: ../../../src/plugin/PluginBase.php