OSDN Git Service

strict comparison for 'runtime' key. see #277
authorscribu <mail@scribu.net>
Wed, 23 Jan 2013 03:37:39 +0000 (05:37 +0200)
committerscribu <mail@scribu.net>
Wed, 23 Jan 2013 03:37:39 +0000 (05:37 +0200)
php/WP_CLI/Runner.php

index 9876d31..ce1287e 100644 (file)
@@ -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 ] ) ) {