Skip to content

Handle missing products without a type error - #3

Draft
pH-7 wants to merge 1 commit into
mainfrom
codex/audit-missing-product
Draft

Handle missing products without a type error#3
pH-7 wants to merge 1 commit into
mainfrom
codex/audit-missing-product

Conversation

@pH-7

@pH-7 pH-7 commented Sep 7, 2026

Copy link
Copy Markdown
Member

A missing product currently returns false from PDO through a stdClass return type, raising a TypeError before the controller can redirect. Return null for an absent row while preserving existing product data.

Validation: a real in-memory SQLite regression reproduces the original error; both missing/existing-product tests pass after the fix using isolated PHPUnit 9.6 on PHP 8.5. All 30 original PHP files pass syntax checks. Existing nullable-parameter deprecation warnings remain.

The full legacy PHPUnit suite cannot run: Composer blocks the configured Twig 2 and Symfony 4 dependencies due to security advisories. No dependency migration or deployment is included; this PR remains a draft pending integration validation.

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