From a906e6e3a83775a25cf4f2b5cda3f844386d773a Mon Sep 17 00:00:00 2001 From: Ashar Fuadi Date: Thu, 7 Dec 2023 05:25:41 +0700 Subject: [PATCH] Assembler: Fix php warnings (#7529) --- assembler/functions.php | 1 + assembler/patterns/byline-date.php | 2 ++ assembler/patterns/footer.php | 2 ++ assembler/patterns/header.php | 2 ++ assembler/patterns/post-meta.php | 2 ++ 5 files changed, 9 insertions(+) diff --git a/assembler/functions.php b/assembler/functions.php index 55996980b..2d3c072a0 100644 --- a/assembler/functions.php +++ b/assembler/functions.php @@ -8,6 +8,7 @@ * @since Assembler 1.0 */ +declare( strict_types = 1 ); if ( ! function_exists( 'assembler_support' ) ) : diff --git a/assembler/patterns/byline-date.php b/assembler/patterns/byline-date.php index 3acdd0aa8..a1093da33 100644 --- a/assembler/patterns/byline-date.php +++ b/assembler/patterns/byline-date.php @@ -4,6 +4,8 @@ * Slug: assembler/byline-date * Inserter: no */ + +declare( strict_types = 1 ); ?>
diff --git a/assembler/patterns/footer.php b/assembler/patterns/footer.php index b9463fcc8..3e26ba33b 100644 --- a/assembler/patterns/footer.php +++ b/assembler/patterns/footer.php @@ -5,6 +5,8 @@ * Categories: footer * Block Types: core/template-part/footer */ + +declare( strict_types = 1 ); ?> diff --git a/assembler/patterns/header.php b/assembler/patterns/header.php index 51bb15f36..82c2c55cd 100644 --- a/assembler/patterns/header.php +++ b/assembler/patterns/header.php @@ -5,6 +5,8 @@ * Categories: featured, header * Block Types: core/template-part/header */ + +declare( strict_types = 1 ); ?> diff --git a/assembler/patterns/post-meta.php b/assembler/patterns/post-meta.php index 4d5daa7f3..9ec91586c 100644 --- a/assembler/patterns/post-meta.php +++ b/assembler/patterns/post-meta.php @@ -5,6 +5,8 @@ * Categories: post meta * Block Types: core/post-date, core/post-terms */ + +declare( strict_types = 1 ); ?>