Skip to content

Commit c919537

Browse files
committed
Remove type hint for function returns (fw may not be php 7.0 ready yet)
1 parent d622418 commit c919537

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

woocommerce/class-sv-wc-helper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public static function str_to_sane_utf8( $string ) {
246246
* @param bool $trim_zeros from end of string (optional, default false)
247247
* @return string fraction formatted as percentage
248248
*/
249-
public static function format_percentage( $fraction, $decimal_points = false, $trim_zeros = false ) : string {
249+
public static function format_percentage( $fraction, $decimal_points = false, $trim_zeros = false ) {
250250

251251
return sprintf( '%s%%', (string) wc_format_decimal( $fraction * 100, $decimal_points, $trim_zeros ) );
252252
}
@@ -1124,7 +1124,7 @@ public static function trigger_error( $message, $type = E_USER_NOTICE ) {
11241124
* @param string[] $values
11251125
* @return string
11261126
*/
1127-
public static function get_escaped_string_list( array $values ) : string {
1127+
public static function get_escaped_string_list( array $values ) {
11281128
global $wpdb;
11291129

11301130
return (string) $wpdb->prepare( implode( ', ', array_fill( 0, count( $values ), '%s' ) ), $values );
@@ -1141,7 +1141,7 @@ public static function get_escaped_string_list( array $values ) : string {
11411141
* @param int[] $ids
11421142
* @return string
11431143
*/
1144-
public static function get_escaped_id_list( array $ids ) : string {
1144+
public static function get_escaped_id_list( array $ids ) {
11451145

11461146
return implode( ',', array_unique( array_map( 'intval', $ids ) ) );
11471147
}

0 commit comments

Comments
 (0)