Skip to content

Deprecate ProgrammingError in favor of LogicException#5511

Open
TheSyscall wants to merge 1 commit into
mainfrom
deprecate-programming-error
Open

Deprecate ProgrammingError in favor of LogicException#5511
TheSyscall wants to merge 1 commit into
mainfrom
deprecate-programming-error

Conversation

@TheSyscall
Copy link
Copy Markdown

Mark ProgrammingError as @deprecated in favor of PHP SPL LogicException.

ProgrammingError is a thin wrapper around IcingaException that carries no additional semantics beyond what PHP's built-in LogicException already provides.

The one behavioral difference is that IcingaException accepts a vsprintf-style format string and arguments in its constructor, which LogicException does not.

LogicException is the PHP SPL type for errors that represent violations of program logic, incorrect API usage, missing setup, and violated preconditions, which is exactly what ProgrammingError was used for.

@TheSyscall TheSyscall self-assigned this May 21, 2026
@cla-bot cla-bot Bot added the cla/signed label May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant