Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit a906e6e

Browse files
authored
Assembler: Fix php warnings (#7529)
1 parent 591e5c1 commit a906e6e

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

assembler/functions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @since Assembler 1.0
99
*/
1010

11+
declare( strict_types = 1 );
1112

1213
if ( ! function_exists( 'assembler_support' ) ) :
1314

assembler/patterns/byline-date.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* Slug: assembler/byline-date
55
* Inserter: no
66
*/
7+
8+
declare( strict_types = 1 );
79
?>
810
<!-- wp:group {"style":{"spacing":{"blockGap":"0.26rem","padding":{"bottom":"20px"}},"typography":{"fontSize":"x-small"}},"layout":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"center","justifyContent":"center"}} -->
911
<div class="wp-block-group" style="padding-bottom:20px;font-size:x-small"><!-- wp:paragraph {"fontSize":"x-small"} -->

assembler/patterns/footer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* Categories: footer
66
* Block Types: core/template-part/footer
77
*/
8+
9+
declare( strict_types = 1 );
810
?>
911

1012

assembler/patterns/header.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* Categories: featured, header
66
* Block Types: core/template-part/header
77
*/
8+
9+
declare( strict_types = 1 );
810
?>
911

1012

assembler/patterns/post-meta.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* Categories: post meta
66
* Block Types: core/post-date, core/post-terms
77
*/
8+
9+
declare( strict_types = 1 );
810
?>
911

1012

0 commit comments

Comments
 (0)