Methods with the same name as their class will not be constructors in a future version of PHP
02.02.2019 09:56:00 am
Перешел на PHP 7.3 и в phpMyAdmin посыпались ошибки, одна из них: Methods with the same name as their class will not be constructors in a future version of PHP: например:
Ошибка сообщает: "Методы с тем же именем, что и их класс, не будут конструкторами в будущей версии PHP". Стараюсь исправить, открываю: "/usr/share/php/php-gettext/streams.php", нахожу:
Меняю на:
Готово. Ошибки больше нет.
Deprecation Notice in ./../php/php-gettext/streams.php#48
Methods with the same name as their class will not be constructors in a future version of PHP; StringReader has a deprecated constructor
Methods with the same name as their class will not be constructors in a future version of PHP; StringReader has a deprecated constructor
Ошибка сообщает: "Методы с тем же именем, что и их класс, не будут конструкторами в будущей версии PHP". Стараюсь исправить, открываю: "/usr/share/php/php-gettext/streams.php", нахожу:
function StringReader($str='') {
$this->_str = $str;
$this->_pos = 0;
}
Меняю на:
function __construct($str='') {
$this->_str = $str;
$this->_pos = 0;
}
Готово. Ошибки больше нет.
- Жалоба