Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

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

Open
thelounge-zz opened this issue May 28, 2017 · 0 comments

Comments

@thelounge-zz
Copy link

such warnings are a joke in a codebase targeting PHP7
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Student has a deprecated constructor in /mnt/data/downloads/php_pgo_training_scripts-master/class.php on line 45
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Faculty has a deprecated constructor in /mnt/data/downloads/php_pgo_training_scripts-master/class.php on line 149

cmb69 added a commit to cmb69/php_pgo_training_scripts that referenced this issue Mar 27, 2019
Since the old stlye constructors are deprecated as of PHP 7.0.0, and
__construct() is already fully supported as of PHP 5.0.0, we change the
names of the constructors.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant