PHP 7 compatibility
-
Hello,
I checked the PHP7 compatibility with “php compatibility checker” plugin and got some warnings and errors.
Name: Loco Translate
FILE: …/wp-content/plugins/loco-translate/src/mvc/FileParams.php
———————————————————————————————
FOUND 0 ERRORS AND 10 WARNINGS AFFECTING 10 LINES
———————————————————————————————
99 | WARNING | Method name “Loco_mvc_FileParams::__name” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
107 | WARNING | Method name “Loco_mvc_FileParams::__path” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
115 | WARNING | Method name “Loco_mvc_FileParams::__relpath” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
126 | WARNING | Method name “Loco_mvc_FileParams::__reltime” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
145 | WARNING | Method name “Loco_mvc_FileParams::__bytes” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
153 | WARNING | Method name “Loco_mvc_FileParams::__size” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
162 | WARNING | Method name “Loco_mvc_FileParams::__imode” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
172 | WARNING | Method name “Loco_mvc_FileParams::__smode” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
182 | WARNING | Method name “Loco_mvc_FileParams::__owner” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
194 | WARNING | Method name “Loco_mvc_FileParams::__group” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
———————————————————————————————FILE: …/wp-content/plugins/loco-translate/old/lib/loco-boot.php
———————————————————————————————FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————————————
61 | WARNING | Method name “Loco::__file” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
———————————————————————————————FILE: …/wp-content/plugins/loco-translate/lib/compiled/gettext.php
——————————————————————————————
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
——————————————————————————————
1 | WARNING | File has mixed line endings; this may cause incorrect results
——————————————————————————————
- The topic ‘PHP 7 compatibility’ is closed to new replies.