Skip to content

Commit 1e63bc2

Browse files
older php versions code fix
1 parent 00a6bbd commit 1e63bc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/abilities/class-wp-settings-abilities.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public static function execute_get_settings( $input = array() ): array {
322322
* @param string $type The registered type (string, boolean, integer, number, array, object).
323323
* @return string|bool|int|float|array The cast value.
324324
*/
325-
private static function cast_value( $value, string $type ): string|bool|int|float|array {
325+
private static function cast_value( $value, string $type ) {
326326
switch ( $type ) {
327327
case 'boolean':
328328
return (bool) $value;

0 commit comments

Comments
 (0)