From 667528d5b927f0f284a067b0e24c9ca7f26c28a4 Mon Sep 17 00:00:00 2001 From: wn_ Date: Sat, 23 Nov 2024 18:23:49 +0000 Subject: Use PHP 8 'str_' functions. A few more characters in some places, but helps with readability. --- update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'update.php') diff --git a/update.php b/update.php index c7f274419..d2a1287d1 100755 --- a/update.php +++ b/update.php @@ -123,7 +123,7 @@ $options_help = []; foreach ($options_map as $option => $descr) { - if (substr($option, -1) === ":") + if (str_ends_with($option, ':')) $option = substr($option, 0, -1); $help_key = trim(sprintf("--%s %s", -- cgit v1.2.3-54-g00ecf