Skip to content

Commit 7306edb

Browse files
authored
Fix PHPStan error in wp transient delete (#132)
1 parent 2789122 commit 7306edb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/Transient_Command.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@ public function set( $args, $assoc_args ) {
193193
public function delete( $args, $assoc_args ) {
194194
$key = ( ! empty( $args ) ) ? $args[0] : null;
195195

196-
$all = Utils\get_flag_value( $assoc_args, 'all' );
197-
$expired = Utils\get_flag_value( $assoc_args, 'expired' );
198-
$network = Utils\get_flag_value( $assoc_args, 'network' );
196+
$all = Utils\get_flag_value( $assoc_args, 'all', false );
197+
$expired = Utils\get_flag_value( $assoc_args, 'expired', false );
198+
$network = Utils\get_flag_value( $assoc_args, 'network', false );
199199

200200
if ( true === $all ) {
201201
$this->delete_all( $network );

0 commit comments

Comments
 (0)