Call to a member function format() on null
When I’m calling $review->modified->format('Y-m-d H:i:s')
then I’m getting all to a member function format() on null error. I don’t know what wrong with my query.
Can anybody here who can help me with this error.