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 #108

Open
acorman opened this issue Dec 2, 2016 · 1 comment

Comments

@acorman
Copy link

acorman commented Dec 2, 2016

Installed and generated fine but when I attempt to view the resulting index.php I get this error:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; queryData has a deprecated constructor in /Library/WebServer/Documents/cargo__stylerules/src/app.php on line 13

Tried this fix described here: http://stackoverflow.com/questions/36339774/php7-constructor-class-name

...but it didn't work.

@mooztik
Copy link

mooztik commented Jan 23, 2017

hello @acorman
the fix from stackoverflow explain that the old way of PHP to handle class constructor was using class name as method.
in admin-generator,replace function queryData() by function __construct() and you obtain the correct way to build the constructor
thank to you, i learned an old deprecated and never used thing from php4 ;)

Repository owner deleted a comment from Muhammadinaam Jul 21, 2021
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

2 participants