summaryrefslogtreecommitdiff
path: root/classes/dlg.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-06 17:38:24 +0300
committerAndrew Dolgov <[email protected]>2021-02-06 17:38:24 +0300
commitc94f1b6ff8a2a82fa0d6ad725144c5380fd0df7b (patch)
tree4b75ab38e2145422f4de313986ee7b32f1a92ade /classes/dlg.php
parentb6e1a5c91a0999a13eda4207fc23ff495637d697 (diff)
fix some more warnings reported by phpstan
Diffstat (limited to 'classes/dlg.php')
-rw-r--r--classes/dlg.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/dlg.php b/classes/dlg.php
index 8873a0cb9..2fa232053 100644
--- a/classes/dlg.php
+++ b/classes/dlg.php
@@ -136,7 +136,7 @@ class Dlg extends Handler_Protected {
// and add the $min_size set above
$size = round($min_size + (($value - $min_qty) * $step));
- $key_escaped = str_replace("'", "\\'", $key);
+ $key_escaped = str_replace("'", "\\'", (string)$key);
echo "<a href=\"#\" onclick=\"Feeds.open({feed:'$key_escaped'}) \" style=\"font-size: " .
$size . "px\" title=\"$value articles tagged with " .