Skip to content

Promote warnings to error in array_fill() #4576

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 1 commit into from

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Aug 20, 2019

Split from #4566

@Girgias Girgias changed the title Promote warnings to error in array_flip() Promote warnings to error in array_fill() Aug 20, 2019
@@ -2602,7 +2602,7 @@ PHP_FUNCTION(compact)
}
/* }}} */

/* {{{ proto array|false array_fill(int start_key, int num, mixed val)
/* {{{ proto array array_fill(int start_key, int num, mixed val)
Copy link
Contributor

Choose a reason for hiding this comment

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

The stub return type also needs to be updated.

@Girgias
Copy link
Member Author

Girgias commented Aug 29, 2019

This probably needs to wait the result of the Reclassifying Engine Warnings RFC wrt to the "Cannot add element to the array as the next element is already occupied" warning, which also prevents a return type modification in the stubs.

@php-pulls php-pulls closed this in d5e9ef8 Oct 2, 2019
@Girgias Girgias deleted the fill-array-warning2error branch November 20, 2019 19:25
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.

6 participants