Skip to content

Conversation

@rbaarsma
Copy link

No description provided.

{
$parts = explode(" - ", $search_param);

$start = new \DateTime($parts[0]);
Copy link
Member

Choose a reason for hiding this comment

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

is it usefull to do something with possible exceptions?

Copy link
Author

Choose a reason for hiding this comment

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

I considered this, but rejected it because I'd rather see the error at the earliest stage than somehow catch it here and silence it or some such. This is an error that can only happen with bugs in development of the javascript part. When that's correct, it will not go wrong unless you manually manipulate stuff

],
"require": {
"php": "~5.3|~7.0",
"php": "~5.4|~7.0",
Copy link
Member

Choose a reason for hiding this comment

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

Why php 5.4?

Copy link
Author

Choose a reason for hiding this comment

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

because we use shorttag arrays (already in more code), and my editor said that's not possible in php 5.3 (only 5.4+), so I changed it rather than changing previous code.

@WickedSilver WickedSilver merged commit a71a0e1 into master Jun 28, 2018
@WickedSilver WickedSilver deleted the rb_datetime_filter branch June 28, 2018 08:11
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