From c7da7bceef309c547de62021d825016df5c8eb2d Mon Sep 17 00:00:00 2001 From: scribu Date: Wed, 23 Jan 2013 05:37:39 +0200 Subject: [PATCH] strict comparison for 'runtime' key. see #277 --- php/WP_CLI/Runner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/WP_CLI/Runner.php b/php/WP_CLI/Runner.php index 9876d317..ce1287e7 100644 --- a/php/WP_CLI/Runner.php +++ b/php/WP_CLI/Runner.php @@ -70,7 +70,7 @@ class Runner { private static function split_special( &$assoc_args, &$config, $spec ) { foreach ( $spec as $key => $details ) { - if ( true == $details['runtime'] ) { + if ( true === $details['runtime'] ) { self::handle_boolean_param( $assoc_args, $config, $key ); } elseif ( false !== $details['runtime'] ) { if ( isset( $assoc_args[ $key ] ) ) { -- 2.11.0