summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-14 21:37:10 +0300
committerAndrew Dolgov <[email protected]>2021-11-14 21:37:12 +0300
commit78751f2d357670c300e043bfd2e2122fe736c9cb (patch)
treee54bb6aa617fb8835462f5b65673ee086d30e3ae
parent3cf935ad42f539245cbe3ff54f43dad50b5c54b8 (diff)
fix phpstan warnings
-rw-r--r--init.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/init.php b/init.php
index 70e8aa8..be87e61 100644
--- a/init.php
+++ b/init.php
@@ -11,7 +11,13 @@ class Hotkeys_Ru extends Plugin {
$host->add_hook($host::HOOK_HOTKEY_MAP, $this);
}
- private function mb_strtr($str, $from, $to) {
+ /**
+ * @param string $str
+ * @param string|array<string> $from
+ * @param string $to
+ * @return string
+ */
+ private function mb_strtr(string $str, mixed $from, string $to) : string {
$keys = [];
$values = [];