Skip to content

Exempt adding Type and Value Errors from BC break policy#27

Open
Girgias wants to merge 5 commits intophp:mainfrom
Girgias:bc-type-value-exempt
Open

Exempt adding Type and Value Errors from BC break policy#27
Girgias wants to merge 5 commits intophp:mainfrom
Girgias:bc-type-value-exempt

Conversation

@Girgias
Copy link
Member

@Girgias Girgias commented Feb 17, 2026

No description provided.

Girgias and others added 3 commits March 18, 2026 12:08

- Adding TypeError and ValueError exceptions to validate inputs to functions
and methods. These are not classified as BC breaks because not adding them
allows incorrect code to run and thus leads to hard to debug code.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add hyphens to turn the adjective phrase into a compound word, increasing readability.

Suggested change
allows incorrect code to run and thus leads to hard to debug code.
allows incorrect code to run and thus leads to hard-to-debug code.


- Adding TypeError and ValueError exceptions to validate inputs to functions
and methods. These are not classified as BC breaks because not adding them
allows incorrect code to run and thus leads to hard to debug code.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are not classified as BC breaks because not adding them allows incorrect code to run and thus leads to hard to debug code.

IMO this wording is not great. Maybe:

Missing validation for undocumented or clearly unintended argument values are considered PHP core bugs with unpredictable or incorrect behavior. As such, adding the desired validation is not considered BC breaking.

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.

4 participants