summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-16 13:58:08 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-16 13:58:08 +0100
commit201dda1ed262fd49d633574936b82029b0d070d0 (patch)
treeddf5d28251cb0216a1b4654578dd1d53fc74098e
parent28c40af4337dcdfe6005133a7b938627cc65e24d (diff)
downloadthemes-201dda1ed262fd49d633574936b82029b0d070d0.tar.gz
themes-201dda1ed262fd49d633574936b82029b0d070d0.tar.bz2
themes-201dda1ed262fd49d633574936b82029b0d070d0.zip
Fix empty string deprecated warning
-rw-r--r--smartyplugins/modifier.ucwords.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/smartyplugins/modifier.ucwords.php b/smartyplugins/modifier.ucwords.php
new file mode 100644
index 0000000..7c32ba0
--- /dev/null
+++ b/smartyplugins/modifier.ucwords.php
@@ -0,0 +1,7 @@
+<?php
+
+namespace Bitweaver\Plugins;
+
+function smarty_modifier_ucwords( ?string $string ): string {
+ return ucwords( $string ?? '' );
+}