From 289b0185215329f6e7b14ef65528e10680f23c03 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 8 Oct 2026 06:04:20 +0000 Subject: [PATCH] Pass explicit default to get_flag_value() in transient delete Fixes PHPStan error where bool|null was passed to delete_all() and delete_expired(), which expect bool. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01MLJFdm3myamNTyyrDXQbvh --- src/Transient_Command.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Transient_Command.php b/src/Transient_Command.php index e06f0426..7fa3e102 100644 --- a/src/Transient_Command.php +++ b/src/Transient_Command.php @@ -193,9 +193,9 @@ public function set( $args, $assoc_args ) { public function delete( $args, $assoc_args ) { $key = ( ! empty( $args ) ) ? $args[0] : null; - $all = Utils\get_flag_value( $assoc_args, 'all' ); - $expired = Utils\get_flag_value( $assoc_args, 'expired' ); - $network = Utils\get_flag_value( $assoc_args, 'network' ); + $all = Utils\get_flag_value( $assoc_args, 'all', false ); + $expired = Utils\get_flag_value( $assoc_args, 'expired', false ); + $network = Utils\get_flag_value( $assoc_args, 'network', false ); if ( true === $all ) { $this->delete_all( $network );