diff --git a/bin/Handbook_Command.php b/bin/Handbook_Command.php index d886d316..00630d9f 100644 --- a/bin/Handbook_Command.php +++ b/bin/Handbook_Command.php @@ -693,7 +693,7 @@ private static function update_commands_data( $command, &$commands_data, $full ) $closure_reflection = new \ReflectionFunction( $closure ); // PHP stores use clause arguments of closures as static variables internally - see https://bugs.php.net/bug.php?id=71250 $static = $closure_reflection->getStaticVariables(); - if ( is_array( $static ) && isset( $static['callable'] ) ) { + if ( isset( $static['callable'] ) ) { // See `CommandFactory::create_subcommand()`. if ( is_array( $static['callable'] ) && isset( $static['callable'][0] ) ) { $reflection_class = new \ReflectionClass( $static['callable'][0] );