浏览代码

Assembler: Fix php warnings (#7529)

Ashar Fuadi 1 年之前
父节点
当前提交
a906e6e3a8

+ 1 - 0
assembler/functions.php

@@ -8,6 +8,7 @@
  * @since Assembler 1.0
  */
 
+declare( strict_types = 1 );
 
 if ( ! function_exists( 'assembler_support' ) ) :
 

+ 2 - 0
assembler/patterns/byline-date.php

@@ -4,6 +4,8 @@
  * Slug: assembler/byline-date
  * Inserter: no
  */
+
+declare( strict_types = 1 );
 ?>
 <!-- wp:group {"style":{"spacing":{"blockGap":"0.26rem","padding":{"bottom":"20px"}},"typography":{"fontSize":"x-small"}},"layout":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"center","justifyContent":"center"}} -->
 <div class="wp-block-group" style="padding-bottom:20px;font-size:x-small"><!-- wp:paragraph {"fontSize":"x-small"} -->

+ 2 - 0
assembler/patterns/footer.php

@@ -5,6 +5,8 @@
  * Categories: footer
  * Block Types: core/template-part/footer
  */
+
+declare( strict_types = 1 );
 ?>
 
 

+ 2 - 0
assembler/patterns/header.php

@@ -5,6 +5,8 @@
  * Categories: featured, header
  * Block Types: core/template-part/header
  */
+
+declare( strict_types = 1 );
 ?>
 
 

+ 2 - 0
assembler/patterns/post-meta.php

@@ -5,6 +5,8 @@
  * Categories: post meta
  * Block Types: core/post-date, core/post-terms
  */
+
+declare( strict_types = 1 );
 ?>