Skip to content

strtotime needs a special case #83

@bendavies

Description

@bendavies

Hi there!
Thanks for the great library!
I think I've found a bug when integrating safe into my project.

Because of this:
https://3v4l.org/HL9Xn
strtotime('+1 day') is not equivalent to \Safe\strtotime('+1 day'), so looks to need some special handling, to not pass null as the 2nd param if the caller didn't specifically pass null, or enforce int for the 2nd param, or pass time() manually if null.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions