Добрый день, при включении показа ошибок вот такие ошибки
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Yml has a deprecated constructor in /www/modules/yamodule/classes/ymlclass.php on line 12
Warning: Cannot modify header information - headers already sent by (output started at /www/modules/yamodule/classes/ymlclass.php:12) in /www/classes/controller/FrontController.php on line 790
Warning: Cannot modify header information - headers already sent by (output started at /www/modules/yamodule/classes/ymlclass.php:12) in /www/classes/controller/FrontController.php on line 791
Warning: Cannot modify header information - headers already sent by (output started at /www/modules/yamodule/classes/ymlclass.php:12) in /www/classes/controller/FrontController.php on line 793
12 строка в файле ymlclass.php
class Yml
Как решить данную проблему?