Skip to content

1.5.1 - Preserve PHAR template indentation and layout

Choose a tag to compare

@allanmcarvalho allanmcarvalho released this 04 Sep 14:43
· 30 commits to 1.x since this release

Fixed

  • Ensured packaged PHAR distributions keep the exact indentation and layout of publishable template files.
    • Updated the PHAR distribution/publishing process so config/maintainer.php and config/maintainer_secrets.php are packaged as unmodified template files.
    • Concretely, these files are now included via a dedicated files-bin group in box.json (instead of the broader files set), helping prevent whitespace/formatting changes during packaging.

Testing

  • Refined and expanded unit test coverage in tests/Unit/ComposerManifestTest.php to prevent regressions.
    • Verifies box.json no longer includes directories for config/resources.
    • Confirms config/template splitting between boxManifest['files'] (compacted entries) and boxManifest['files-bin'] (unmodified template entries).
    • Asserts PHAR contents preserve byte-for-byte formatting for:
      • config/maintainer.php
      • config/maintainer_secrets.php
      • resources/pint.json

Compatibility / Migration

  • No source-level migration is required for consumers.
  • This is a packaging/publishing behavior fix: if you previously depended on how these template files were formatted when installed from the PHAR, re-check those assumptions.