-
Notifications
You must be signed in to change notification settings - Fork 189
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
fix integration tests #2201
fix integration tests #2201
Conversation
https://wiki.php.net/rfc/null_coalesce_equal_operator is what it should be |
The null coalescing assignment operator does essentially this: https://www.php.net/manual/en/migration74.new-features.php#migration74.new-features.core.null-coalescing-assignment-operator - However I also couldn't find it in the docs itself. Your current code does something different, since it nerver assigns the value. |
hmm I see but why does the test fail without this change? I will try |
with it also fails, I'm clueless. That seems to mean that when we pass the date to feed-io it will handle the call somehow in a different way and not throw the exception |
Okay after your input I thought again what else could cause this and I followed the feed-io code. Feed-Io adds a filter based on the date we give it. The feed we test with just happens to have dates about 1 year ago. So with every day less items where considered as valid in that feed until even the last item was out. As temporary fix I updated the dates to 2023 and it works again. |
Signed-off-by: Benjamin Brahmer <[email protected]>
Okay 2099 should be fine for a while, the next maintainer can adjust the date again if needed. |
Signed-off-by: Benjamin Brahmer <[email protected]>
Signed-off-by: Benjamin Brahmer <[email protected]>
Summary
fix ?? operator, I'm not sure what ??= does but apparently not what we wanted. ?? is evaluating if the expression to the left is null and assigns the default value on the right.
"null coalescing" operator
https://www.php.net/manual/en/language.operators.comparison.php#language.operators.comparison.coalesce
Checklist