diff --git a/.woodpecker/.phpunit.yml b/.woodpecker/.phpunit.yml index 893d433a..f198ba2a 100644 --- a/.woodpecker/.phpunit.yml +++ b/.woodpecker/.phpunit.yml @@ -5,11 +5,11 @@ matrix: - PHP_MAJOR_VERSION: 7.4 PHP_VERSION: 7.4.33 - PHP_MAJOR_VERSION: 8.0 - PHP_VERSION: 8.0.29 + PHP_VERSION: 8.0.30 - PHP_MAJOR_VERSION: 8.1 - PHP_VERSION: 8.1.21 + PHP_VERSION: 8.1.23 - PHP_MAJOR_VERSION: 8.2 - PHP_VERSION: 8.2.8 + PHP_VERSION: 8.2.11 # This forces PHP Unit executions at the "opensocial" labeled location (because of much more power...) labels: diff --git a/smileybutton/smileybutton.php b/smileybutton/smileybutton.php index fc20888f..1df717b7 100644 --- a/smileybutton/smileybutton.php +++ b/smileybutton/smileybutton.php @@ -90,7 +90,7 @@ function smileybutton_jot_tool(string &$body) for ($x = 0; $x < count($params['texts']); $x++) { $icon = $params['icons'][$x]; $s .= '' . $icon . ''; - if (($x + 1) % (sqrt(count($params['texts'])) + 1) == 0) { + if (($x + 1) % (floor(sqrt(count($params['texts']))) + 1) == 0) { $s .= ''; } }