Skip to content

Commit 4bf6850

Browse files
committed
Cast expiration value as integer in cache patch command
1 parent a3c3782 commit 4bf6850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cache_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ function ( $key ) {
516516
public function patch( $args, $assoc_args ) {
517517
list( $action, $key ) = $args;
518518
$group = Utils\get_flag_value( $assoc_args, 'group' );
519-
$expiration = Utils\get_flag_value( $assoc_args, 'expiration' );
519+
$expiration = (int) Utils\get_flag_value( $assoc_args, 'expiration' );
520520

521521
$key_path = array_map(
522522
function ( $key ) {

0 commit comments

Comments
 (0)