Просмотр исходного кода

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
Vicente Canales 1 год назад
Родитель
Сommit
25ae9707aa
5 измененных файлов с 6 добавлено и 4 удалено
  1. 1 1
      beep/functions.php
  2. 1 1
      ici/functions.php
  3. 2 0
      indice/functions.php
  4. 1 1
      spiel/functions.php
  5. 1 1
      xanadu/functions.php

+ 1 - 1
beep/functions.php

@@ -7,7 +7,7 @@
  * @package Beep
  * @since Beep 1.0
  */
-
+declare( strict_types = 1 );
 
 if ( ! function_exists( 'beep_support' ) ) :
 

+ 1 - 1
ici/functions.php

@@ -7,7 +7,7 @@
  * @package Ici
  * @since Ici 1.0
  */
-
+declare( strict_types = 1 );
 
 if ( ! function_exists( 'ici_support' ) ) :
 

+ 2 - 0
indice/functions.php

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

+ 1 - 1
spiel/functions.php

@@ -7,7 +7,7 @@
  * @package Spiel
  * @since Spiel 1.0
  */
-
+declare( strict_types = 1 );
 
 if ( ! function_exists( 'spiel_support' ) ) :
 

+ 1 - 1
xanadu/functions.php

@@ -7,7 +7,7 @@
  * @package Xanadu
  * @since Xanadu 1.0
  */
-
+declare( strict_types = 1 );
 
 if ( ! function_exists( 'xanadu_support' ) ) :