Skip to content

app:config:dump adds extra space every time in multiline array value #11328

Closed
@gulshan-streammarket

Description

@gulshan-streammarket

Preconditions

  1. php 7.0.19
  2. Magento 2.2

Steps to reproduce

  1. RUN > php bin/magento app:config:dump
  2. Search for 'address_templates' key in config.php and count number of spacees in every line of formatted multiline text value.
  3. Now run again>php bin/magento app:config:dump
  4. Again check for number of spaces. You will find two more space.
  5. Every time when we dump of execute setup:upgrade it adds extra space to multiline config value.

Expected result

  1. There should be no extra space if there is no change in the configuration.

Actual result

  1. It adds extra space and it shows as modified in git local working copy. So every time it needs commit when sending feature to repository.
    m2-config-issue

Metadata

Metadata

Labels

Issue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releasebug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions