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

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP #147

Open
koen84 opened this issue Jan 25, 2018 · 2 comments

Comments

@koen84
Copy link

koen84 commented Jan 25, 2018

I get the following warning when DEBUG true :

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; QtranslateSlugWidget has a deprecated constructor in /www/ksr_www/public_html/wp-content/plugins/qtranslate-slug/includes/class-qtranslate-slug-widget.php on line 8

@aballea
Copy link

aballea commented Apr 17, 2018

I ve got the same. Is it a real problem ? I ll ignore it and see if it works.

@mayaliny
Copy link

I've just changed line in my install from
function QtranslateSlugWidget() {
to:
function __construct() {

which is compatible with php7+ seems to me that there are no issues..

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