Add runtime checks for enum references in php
Open 💬 0 comments Opened Jun 9, 2026 by naumcei
What version of the Codex App are you using (From “About Codex” dialog)?
26.602.71036
What subscription do you have?
Business Plan
What platform is your computer?
Darwin 25.5.0 arm64 arm
What issue are you seeing?
Problem
php -l only checks PHP syntax. It does not catch runtime symbol resolution errors such as:
- Wrong enum case access, e.g.
SomeStatus::Pendingwhen the enum definesPENDING
This allowed a status enum refactor bug to pass syntax checks but fail at runtime with 500 errors.
What steps can reproduce the bug?
php -l only checks PHP syntax. It does not catch runtime symbol resolution
What is the expected behavior?
_No response_
Additional information
_No response_