Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.1.3

Bug #21187 Occurred error "Assigning the return value of new by reference is deprecated"
Submitted: 2017-02-27 12:03 UTC
From: takoba Assigned:
Status: Open Package: Date_Holidays_Japan (version 0.1.3)
PHP Version: 5.5.38 OS: Ubuntu (Amazon Linux AMI)
Roadmaps: (Not assigned)    
Subscription  


 [2017-02-27 12:03 UTC] takoba (Tak Obara)
Description: ------------ In Date/Holidays/Driver/Japan.php, Line 328. ``` $date =& new Date($this->_year . '-05-04'); ``` cf.) http://php.net/manual/en/migration53.deprecated.php Expected result: ---------------- In this case, I think you should assign `new Date()` to `$date` simply. ``` $date = new Date($this->_year . '-05-04'); ```

Comments