Skip to content

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

Closed
wants to merge 2 commits into from
Closed

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Nov 19, 2019

These changes were made before the introduction of ValueError changing them all in one batch.

@Girgias
Copy link
Member Author

Girgias commented Nov 19, 2019

Tests failures are related, will fix later today.

@@ -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");
Copy link
Member

@kocsismate kocsismate Nov 19, 2019

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?

Copy link
Member Author

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.

Copy link
Member Author

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.

@Girgias Girgias force-pushed the change-to-value-error branch 2 times, most recently from 5f100a5 to d82d10b Compare November 19, 2019 22:53
@Girgias Girgias requested a review from nikic November 20, 2019 14:41
@Girgias Girgias force-pushed the change-to-value-error branch from d82d10b to 8cb9c29 Compare December 4, 2019 14:38
@Girgias Girgias force-pushed the change-to-value-error branch from 8cb9c29 to eeabea2 Compare December 4, 2019 15:05
@php-pulls php-pulls closed this in 5fbd49f Dec 5, 2019
@Girgias Girgias deleted the change-to-value-error branch December 5, 2019 13:32
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.

3 participants