Skip to content

Fix/php84 forward compat - #26

Open
AndrewRMillar wants to merge 2 commits into
elgentos:masterfrom
AndrewRMillar:fix/php84-forward-compat
Open

Fix/php84 forward compat#26
AndrewRMillar wants to merge 2 commits into
elgentos:masterfrom
AndrewRMillar:fix/php84-forward-compat

Conversation

@AndrewRMillar

Copy link
Copy Markdown

Remove dead Zend logger, fix import reindex and modernise unit tests

- Helper\Data: drop unused callLogObj(); Zend\Log no longer exists since
  Magento 2.4 moved to Laminas, so it was a guaranteed fatal if ever called
- Plugin\Import\Product: empty($ids) > 0 is always false, so the category
  reindex after a stock import never ran
- Tests: setMethods() is removed in PHPUnit 10; split into onlyMethods()
  and addMethods() depending on whether the method exists on the mocked
  type. Add setUp(): void (fatal since PHPUnit 8) and declare
  $productMetadataMock instead of creating it dynamically

AndrewRmillar added 2 commits August 4, 2026 11:40
- Helper\Data: drop unused callLogObj(); Zend\Log no longer exists since
  Magento 2.4 moved to Laminas, so it was a guaranteed fatal if ever called
- Plugin\Import\Product: empty($ids) > 0 is always false, so the category
  reindex after a stock import never ran
- Tests: setMethods() is removed in PHPUnit 10; split into onlyMethods()
  and addMethods() depending on whether the method exists on the mocked
  type. Add setUp(): void (fatal since PHPUnit 8) and declare
  $productMetadataMock instead of creating it dynamically
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