Skip to content

Add runtime checks for enum references in php #27172

@naumcei

Description

@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::Pending when the enum defines PENDING

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentIssues related to the core agent loopappIssues related to the Codex desktop appenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions