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 #8991

Merged
merged 1 commit into from
Mar 25, 2017
Merged

Update AbstractModel.php #8991

merged 1 commit into from
Mar 25, 2017

Conversation

redelschaap
Copy link
Contributor

@redelschaap redelschaap commented Mar 23, 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.

I created this PR earlier, but by mistake it was created for the 2.1 branch instead of the develop branch. See also #8796.

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.
@ishakhsuvarov ishakhsuvarov self-assigned this Mar 24, 2017
@ishakhsuvarov ishakhsuvarov added this to the March 2017 milestone Mar 24, 2017
@magento-team magento-team merged commit c951fed into magento:develop Mar 25, 2017
magento-team pushed a commit that referenced this pull request Mar 25, 2017
@redelschaap redelschaap deleted the patch-5 branch March 25, 2017 13:49
@vrann
Copy link
Contributor

vrann commented Mar 25, 2017

@redelschaap Thank you for the contribution.

magento-devops-reposync-svc pushed a commit that referenced this pull request Jun 17, 2024
ACP2E-3089: [MFTF PR TESTS] StorefrontCompanyUserCreateTest fails
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