Skip to content

Conversation

Irker
Copy link
Contributor

@Irker Irker commented Apr 9, 2013

When object was created not from DateTime::diff():
in var_dump($object) days property have value "false",
but in var_dump($object->days) have value -99999

Example:
https://gist.github.com/Irker/5346465

Commit was made ​​instinctively, please check my code.

when object was created not from DateTime::diff()
--FILE--
<?php

$interval = new DateInterval('P2Y4DT6H8M');;
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo here, double semicolon.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thx. Fixed

@weltling
Copy link
Contributor

Looks good to me, except the 'invert' property would be never -99999. But not a big deal, it'll just get it's value.

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