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

Errors and deprecations findings #87

Open
rikardow opened this issue Jul 9, 2024 · 0 comments
Open

Errors and deprecations findings #87

rikardow opened this issue Jul 9, 2024 · 0 comments

Comments

@rikardow
Copy link

rikardow commented Jul 9, 2024

Hi, thanks for the great work on this plugin

We found some errors and deprecations in the codebase, here's the list

  1. File: question/type/wq/db/upgrade.php
    Line: 110
    Message: Function utf8_encode() is deprecated since PHP 8.2; Use mb_convert_encoding(), UConverter::transcode() or iconv instead
    Type: warning

  2. File: question/type/wq/quizzes/lib/haxe/Utf8.class.php
    Line: 26
    Message: Function utf8_encode() is deprecated since PHP 8.2; Use mb_convert_encoding(), UConverter::transcode() or iconv instead
    Type: warning

  3. File: question/type/wq/quizzes/lib/haxe/Utf8.class.php
    Line: 29
    Message: Function utf8_decode() is deprecated since PHP 8.2; Use mb_convert_encoding(), UConverter::transcode() or iconv instead
    Type: warning

  4. File: question/type/wq/quizzes/lib/php/Boot.class.php
    Line: 808
    Message: 'enum' is a soft reserved keyword as of PHP version 8.1 and should not be used to name a class, interface or trait or as part of a namespace (class declaration)
    Type: warning

  5. File: question/type/wq/quizzes/lib/Xml.class.php
    Line: 219
    Message: Method name \Xml::__saveText" is discouraged; PHP has reserved all method names with a double underscore prefix for future use."
    Type: warning

  6. File: question/type/wq/quizzes/lib/Xml.class.php
    Line: 225
    Message: Method name \Xml::__start_element_handler" is discouraged; PHP has reserved all method names with a double underscore prefix for future use."
    Type: warning

  7. File: question/type/wq/quizzes/lib/Xml.class.php
    Line: 235
    Message: Method name \Xml::__end_element_handler" is discouraged; PHP has reserved all method names with a double underscore prefix for future use."
    Type: warning

  8. File: question/type/wq/quizzes/lib/Xml.class.php
    Line: 242
    Message: Method name \Xml::__character_data_handler" is discouraged; PHP has reserved all method names with a double underscore prefix for future use."
    Type: warning

  9. File: question/type/wq/quizzes/lib/Xml.class.php
    Line: 245
    Message: Method name \Xml::__default_handler" is discouraged; PHP has reserved all method names with a double underscore prefix for future use."
    Type: warning

  10. File: question/type/wq/quizzes/lib/php/Boot.class.php
    Line: 732
    Message: Method name _hx_type::rfl" is discouraged; PHP has reserved all method names with a double underscore prefix for future use."
    Type: warning

  11. File: question/type/wq/quizzes/lib/com/wiris/util/geometry/GeometryElementStyle.class.php
    Line: 25
    Message: Method name \com_wiris_util_geometry_GeometryElementStyle::meta" is discouraged; PHP has reserved all method names with a double underscore prefix for future use."
    Type: warning

  12. File: question/type/wq/quizzes/lib/com/wiris/system/CallWrapper.class.php
    Line: 9
    Message: Function __autoload() is deprecated since PHP 7.2 and removed since PHP 8.0; Use spl_autoload_register() instead
    Type: error

  13. File: question/type/wq/quizzes/lib/com/wiris/quizzes/impl/QuestionInstanceImpl.class.php
    Line: 1525
    Message: Method name \com_wiris_quizzes_impl_QuestionInstanceImpl::meta" is discouraged; PHP has reserved all method names with a double underscore prefix for future use."
    Type: warning

  14. File: question/type/wq/quizzes/lib/com/wiris/quizzes/impl/QuizzesUIBuilderImpl.class.php
    Line: 104
    Message: Method name \com_wiris_quizzes_impl_QuizzesUIBuilderImpl::meta" is discouraged; PHP has reserved all method names with a double underscore prefix for future use."
    Type: warning

  15. File: question/type/wq/quizzes/lib/com/wiris/quizzes/impl/Assertion.class.php
    Line: 352
    Message: Method name \com_wiris_quizzes_impl_Assertion::meta" is discouraged; PHP has reserved all method names with a double underscore prefix for future use."
    Type: warning

  16. File: question/type/wq/quizzes/lib/com/wiris/quizzes/impl/QuizzesBuilderImpl.class.php
    Line: 85
    Message: Method name \com_wiris_quizzes_impl_QuizzesBuilderImpl::meta" is discouraged; PHP has reserved all method names with a double underscore prefix for future use."
    Type: warning

  17. File: question/type/wq/quizzes/lib/com/wiris/quizzes/api/QuizzesConstants.class.php
    Line: 6
    Message: Method name \com_wiris_quizzes_api_QuizzesConstants::meta" is discouraged; PHP has reserved all method names with a double underscore prefix for future use."
    Type: warning

Thank you very much for your efforts

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

1 participant