-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Change Errors to ValueError #4930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Tests failures are related, will fix later today. |
ext/standard/array.c
Outdated
@@ -2909,7 +2909,7 @@ PHP_FUNCTION(range) | |||
} | |||
err: | |||
if (err) { | |||
zend_throw_error(NULL, "step exceeds the specified range"); | |||
zend_value_error("step exceeds the specified range"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about also capitalizing the initial letter in order to match the others?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with that but I don't know if I should do this in the same commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with that but I don't know if I should do this in the same commit.
5f100a5
to
d82d10b
Compare
d82d10b
to
8cb9c29
Compare
8cb9c29
to
eeabea2
Compare
These changes were made before the introduction of ValueError changing them all in one batch.