@@ -59,7 +59,7 @@ private function __construct( string $template_string, array $replacements ) {
5959 * @param array $replacements The replacement values for placeholders.
6060 * @return static The bound template instance.
6161 */
62- public static function template ( string $ template , array $ replacements = array () ): static {
62+ public static function template ( string $ template , array $ replacements = array () ) {
6363 return new static ( $ template , $ replacements );
6464 }
6565
@@ -80,7 +80,7 @@ public static function template( string $template, array $replacements = array()
8080 * @param array $replacements The replacement values for placeholders.
8181 * @return string|false The rendered HTML, or false on error.
8282 */
83- public static function render ( string $ template , array $ replacements = array () ): string | false {
83+ public static function render ( string $ template , array $ replacements = array () ) {
8484 if ( empty ( $ replacements ) ) {
8585 return WP_HTML_Processor::normalize ( $ template ) ?? false ;
8686 }
@@ -187,7 +187,7 @@ function () use ( $html ) {
187187 * @param WP_HTML_Processor $processor The processor to walk.
188188 * @return string|false The rendered HTML, or false on error.
189189 */
190- private static function process ( self $ template , WP_HTML_Processor $ processor ): string | false {
190+ private static function process ( self $ template , WP_HTML_Processor $ processor ) {
191191 $ output = '' ;
192192 $ used_keys = array ();
193193
@@ -261,7 +261,7 @@ private static function process_placeholder(
261261 WP_HTML_Processor $ processor ,
262262 self $ template ,
263263 array &$ used_keys
264- ): string | false | null {
264+ ) {
265265 $ text = $ processor ->get_modifiable_text ();
266266
267267 // Must start with `%`.
0 commit comments