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

Message: Methods with the same name as their class will not be constructors in a future version of PHP; phpFlickr_pager has a deprecated constructor #85

Closed
gskhattra87 opened this issue Oct 5, 2019 · 4 comments

Comments

@gskhattra87
Copy link

Message: Methods with the same name as their class will not be constructors in a future version of PHP; phpFlickr has a deprecated constructor

Filename: phpflickr/phpFlickr.php

Line Number: 25

Message: Methods with the same name as their class will not be constructors in a future version of PHP; phpFlickr_pager has a deprecated constructor

Filename: phpflickr/phpFlickr.php

Line Number: 1702

@TommyBloom
Copy link

Any news on this? I know that there is another issue that has a fork that apparently has a fix. That fork doesn't work with my drupal plugin.

@samwilson
Copy link

What error are you getting with your Drupal plugin?

@TheKLF99
Copy link

TheKLF99 commented Feb 4, 2021

Change the function names on lines 62 and 1703 to read __construct instead of the class name - as long as nothing in the class calls the functions own name then it should work - I've searched the code and I can't see anything that calls the constructor inside the class. I've just made that alteration myself and will see later on today if it works.

@samwilson
Copy link

I've fixed this issue in my fork of this package.

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

5 participants