Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not supported by php 7 #16

Open
martinvivek opened this issue Apr 7, 2016 · 3 comments
Open

Not supported by php 7 #16

martinvivek opened this issue Apr 7, 2016 · 3 comments

Comments

@martinvivek
Copy link

in PHP 7 the following error occurs.

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; date_iterator has a deprecated constructor in mod\tracker\locallib.php on line 1858

@vfremaux
Copy link
Owner

vfremaux commented Apr 7, 2016

Processed

@drachels
Copy link

drachels commented Feb 9, 2017

Thought I had a fix, but discovered it needs more testing.

@drachels
Copy link

drachels commented Mar 31, 2017

Sorry to take so long to get back to this. Even though the debugging output points to locallib.php line 1858, the line that actually needs to be changed is 1864.
Right now it is: function date_iterator($year, $month) {
but it needs to be changed to: function date_iterator_constructor($year, $month) {

The change is needed for PHP 7 compatibility.

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

No branches or pull requests

3 participants