Browse Source

update spyc.php

feature/refactor-php
Prabuddha Chakraborty 9 years ago
parent
commit
022c86edee
  1. 2
      php/Spyc.php

2
php/Spyc.php

@ -755,7 +755,7 @@ class Spyc {
return $this->addArrayInline ($incoming_data, $incoming_indent); return $this->addArrayInline ($incoming_data, $incoming_indent);
$key = key ($incoming_data); $key = key ($incoming_data);
$value = \WP_CLI\Utils\get_flag_value( $incoming_data, $key ); $value = \EE_CLI\Utils\get_flag_value( $incoming_data, $key );
if ($key === '__!YAMLZero') $key = '0'; if ($key === '__!YAMLZero') $key = '0';
if ($incoming_indent == 0 && !$this->_containsGroupAlias && !$this->_containsGroupAnchor) { // Shortcut for root-level values. if ($incoming_indent == 0 && !$this->_containsGroupAlias && !$this->_containsGroupAnchor) { // Shortcut for root-level values.

Loading…
Cancel
Save