Skip to content

Conversation

@marekk
Copy link
Contributor

@marekk marekk commented May 31, 2016

No description provided.

$type = $this->getTable()->getTypeOf($dateFieldName);
if ($type == 'date' || $type == 'timestamp' || $type == 'datetime')
{
if (is_null($dateTimeObject))
Copy link
Contributor

Choose a reason for hiding this comment

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

Please do not use is_null(), use null === $... instead.

*
* @param string $dateFieldName The field name to get the DateTime object for
* @return DateTime $dateTime The instance of PHPs DateTime
* @return DateTime|null $dateTime The instance of PHPs DateTime
Copy link

Choose a reason for hiding this comment

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

Can you add an empty line before this @return tag? (Like this)

@miniche
Copy link

miniche commented Jun 10, 2016

Seems good for me. After the little CS fix, can you squash your commits in only one?

Ping @jeromemacias & @j0k3r for validation.

@j0k3r j0k3r merged commit 9c3f665 into FriendsOfSymfony1:master Jun 13, 2016
@j0k3r
Copy link
Contributor

j0k3r commented Jun 13, 2016

👍

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