Skip to content

v1.5.2

Latest

Choose a tag to compare

@PrestaEdit PrestaEdit released this 12 Jul 07:27
ea12978

Highlights

  • feat: Env helper (#52) — Env::get()/has() centralises reading env vars from $_ENV and getenv(), so process-env vars set by the shell (GitHub Actions env:, KEY=v php ..., docker -e ...) are picked up regardless of PHP's variables_order. Fixes silent fallback to defaults in CI when consumers set env vars but no .env file exists.

Refactor

  • ~30 callsites migrated from raw $ENV['PRESTAFLOW...'] to Env::get(). Normalization blocks kept intact. Behaviour preserved everywhere.
  • 7 new unit tests on the helper (173 total, 388 assertions).

Consumer impact

  • If you were writing a .env file to work around this in CI, you can drop it — env: in workflow YAML now suffices.
  • PrestaFlow/github-action's .env.local fallback remains in place as a safety net for older lib versions.