From 25ae9707aae7cb9aa0562c14d480facac9dd4135 Mon Sep 17 00:00:00 2001 From: Vicente Canales <1157901+vcanales@users.noreply.github.com> Date: Thu, 7 Dec 2023 00:54:01 -0300 Subject: [PATCH] Add strict types declaration (#7534) Deploy script won't allow themes to be commited without this declaration. Recent previous case: https://github.com/Automattic/themes/pull/7529 --- beep/functions.php | 2 +- ici/functions.php | 2 +- indice/functions.php | 2 ++ spiel/functions.php | 2 +- xanadu/functions.php | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/beep/functions.php b/beep/functions.php index abb86fe55a..ac2c42502a 100644 --- a/beep/functions.php +++ b/beep/functions.php @@ -7,7 +7,7 @@ * @package Beep * @since Beep 1.0 */ - +declare( strict_types = 1 ); if ( ! function_exists( 'beep_support' ) ) : diff --git a/ici/functions.php b/ici/functions.php index 5f617aadae..430f2d9260 100644 --- a/ici/functions.php +++ b/ici/functions.php @@ -7,7 +7,7 @@ * @package Ici * @since Ici 1.0 */ - +declare( strict_types = 1 ); if ( ! function_exists( 'ici_support' ) ) : diff --git a/indice/functions.php b/indice/functions.php index 6ee3caaec4..03937eeb97 100644 --- a/indice/functions.php +++ b/indice/functions.php @@ -8,6 +8,8 @@ * @since indice 1.0 */ +declare( strict_types = 1 ); + if ( ! function_exists( 'indice_support' ) ) : /** diff --git a/spiel/functions.php b/spiel/functions.php index 59204f4b2d..cc7044b760 100644 --- a/spiel/functions.php +++ b/spiel/functions.php @@ -7,7 +7,7 @@ * @package Spiel * @since Spiel 1.0 */ - +declare( strict_types = 1 ); if ( ! function_exists( 'spiel_support' ) ) : diff --git a/xanadu/functions.php b/xanadu/functions.php index cba59b18d9..a5bcd44e6a 100644 --- a/xanadu/functions.php +++ b/xanadu/functions.php @@ -7,7 +7,7 @@ * @package Xanadu * @since Xanadu 1.0 */ - +declare( strict_types = 1 ); if ( ! function_exists( 'xanadu_support' ) ) :