diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-16 13:58:08 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-16 13:58:08 +0100 |
| commit | 201dda1ed262fd49d633574936b82029b0d070d0 (patch) | |
| tree | ddf5d28251cb0216a1b4654578dd1d53fc74098e | |
| parent | 28c40af4337dcdfe6005133a7b938627cc65e24d (diff) | |
| download | themes-201dda1ed262fd49d633574936b82029b0d070d0.tar.gz themes-201dda1ed262fd49d633574936b82029b0d070d0.tar.bz2 themes-201dda1ed262fd49d633574936b82029b0d070d0.zip | |
Fix empty string deprecated warning
| -rw-r--r-- | smartyplugins/modifier.ucwords.php | 7 |
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 ?? '' ); +} |
