Skip to content

Fix PHPStan errors and remove Smarty back-office templates - #25

Merged
anoziere merged 4 commits into
mainfrom
fix/ci-debt
Oct 18, 2026
Merged

anoziere merged 4 commits into
mainfrom
fix/ci-debt

Conversation

@anoziere

Copy link
Copy Markdown
Contributor

PHPStan on the published Thelia reported two errors:

  • TreatOrderMultiPaymentCommand::execute() had no return statement; it now returns Command::SUCCESS.
  • PaymentService::sendOrderPayment() had required parameters after optional ones (deprecated since PHP 8.0). The only caller passes every argument, so the defaults are removed.

Smarty is no longer part of Thelia 3: the back-office Smarty templates (templates/backOffice/default) are removed, the Twig versions in default-twig are the ones used by the hooks. The front-office .html templates have no Twig equivalent yet and are kept.

Version bumped to 3.1.0 (removal of the Smarty templates).

@anoziere
anoziere merged commit a590c15 into main Oct 18, 2026
5 checks passed
@anoziere
anoziere deleted the fix/ci-debt branch October 18, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant