浏览代码

Indice: Add strict types to remaining php files (#7547)

Takashi Irie 1 年之前
父节点
当前提交
02e0970907

+ 2 - 0
indice/patterns/404.php

@@ -4,6 +4,8 @@
  * Slug: indice/404
  * Inserter: no
  */
+
+declare( strict_types = 1 );
 ?>
 
 <!-- wp:paragraph -->

+ 2 - 0
indice/patterns/footer.php

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

+ 2 - 0
indice/patterns/header.php

@@ -5,6 +5,8 @@
  * Categories: header
  * Block Types: core/template-part/header
  */
+
+declare( strict_types = 1 );
 ?>
 
 <!-- wp:group {"style":{"spacing":{"blockGap":"0"}},"layout":{"type":"default"}} -->

+ 2 - 0
indice/patterns/no-results.php

@@ -4,6 +4,8 @@
  * Slug: indice/no-results
  * Inserter: no
  */
+
+declare( strict_types = 1 );
 ?>
 <!-- wp:paragraph -->
 <p><?php echo esc_html_x( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'Message explaining that there are no results returned from a search', 'indice' ); ?></p>

+ 2 - 0
indice/patterns/search-field.php

@@ -4,6 +4,8 @@
  * Slug: indice/search-field
  * Inserter: no
  */
+
+declare( strict_types = 1 );
 ?>
 
 <!-- wp:search {"showLabel":false,"buttonText":"<?php esc_attr_e( 'Search', 'indice' ); ?>","buttonPosition":"button-inside","buttonUseIcon":true} /-->