Skip to content
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

Update AbstractModel.php #8796

Closed
wants to merge 1 commit into from
Closed

Update AbstractModel.php #8796

wants to merge 1 commit into from

Conversation

redelschaap
Copy link
Contributor

@redelschaap redelschaap commented Mar 6, 2017

PHP's function in_array returns TRUE when evaluating a needle 0 against a list of strings, which is a known issue. In my case I got an exception because a small integer was used to construct a new DateTime object. Calling the function in strict mode fixes this. See also http://stackoverflow.com/questions/13846769/php-in-array-0-value.

PHP's function `in_array` returns `TRUE` when evaluating a needle `0` against a list of strings, which is a known issue. In my case I got an exception because a small integer was used to construct a new `DateTime` object. Calling the function in strict mode fixes this. See also http://stackoverflow.com/questions/13846769/php-in-array-0-value.
@maghamed maghamed self-requested a review March 6, 2017 09:43
@maghamed maghamed self-assigned this Mar 6, 2017
@maghamed maghamed added this to the March 2017 milestone Mar 22, 2017
@maghamed
Copy link
Contributor

@redelschaap could you please make a pull request into develop branch , because for a while we don't process PRs into other branches

Copy link
Contributor

@maghamed maghamed left a comment

Choose a reason for hiding this comment

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

please make Pull Request into Develop branch

@redelschaap redelschaap changed the base branch from 2.1 to develop March 23, 2017 13:21
@redelschaap redelschaap changed the base branch from develop to 2.1 March 23, 2017 13:33
@redelschaap
Copy link
Contributor Author

I've created a new PR to the develop branch. See #8991.

@redelschaap redelschaap reopened this Mar 23, 2017
@redelschaap redelschaap deleted the patch-8 branch March 25, 2017 15:48
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.

2 participants