I don’t really need to store DateTime object. Would be possible to call modify anonymously? I’ve tried:
$passwordRequest->setExpire((new \DateTime())->modify('+12 hours'));
But can’t get it to work. Am i asking for the moon?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s a limitation of PHP (I see it as one anyway) that you must call methods on a variable. In other words, what you’re trying to do is not possible.