Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cast expiration value as integer in cache patch command
  • Loading branch information
petitphp committed May 15, 2025
commit 4bf6850d21b6bda7b4367b02111fd6a3dcaa0ae1
2 changes: 1 addition & 1 deletion src/Cache_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ function ( $key ) {
public function patch( $args, $assoc_args ) {
list( $action, $key ) = $args;
$group = Utils\get_flag_value( $assoc_args, 'group' );
$expiration = Utils\get_flag_value( $assoc_args, 'expiration' );
$expiration = (int) Utils\get_flag_value( $assoc_args, 'expiration' );

$key_path = array_map(
function ( $key ) {
Expand Down