------ ---------------------------------------------------------------------- Line lib.php ------ ---------------------------------------------------------------------- 481 Call to static method instance() on an unknown class context_system. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 502 Call to static method instance() on an unknown class context_system. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 613 Variable $peer in empty() is never defined. 696 Variable $fields might not be defined. ------ ---------------------------------------------------------------------- ------ -------------------------------------------------------------------------------------- Line peer.php ------ -------------------------------------------------------------------------------------- 328 Access to an undefined property mnet_peer::$public_key_ref. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property 329 Access to an undefined property mnet_peer::$public_key_ref. 💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property ------ -------------------------------------------------------------------------------------- ------ ----------------------------------------------------------------------------------------------------------------------------------- Line service/enrol/classes/privacy/provider.php ------ ----------------------------------------------------------------------------------------------------------------------------------- 102 Class context_user not found. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 126 Call to static method instance() on an unknown class context_user. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 163 Variable $data might not be defined. 172 Parameter $context of method mnetservice_enrol\privacy\provider::delete_data_for_all_users_in_context() has invalid type context. 187 Class context_user not found. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols ------ ----------------------------------------------------------------------------------------------------------------------------------- ------ ---------------------------------------------------------------------- Line service/enrol/index.php ------ ---------------------------------------------------------------------- 43 Call to static method instance() on an unknown class context_system. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 47 Result of function notice (void) is used. ------ ---------------------------------------------------------------------- ------ ---------------------------------------------------------------------- Line service/enrol/locallib.php ------ ---------------------------------------------------------------------- 555 Call to static method instance() on an unknown class context_system. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols ------ ---------------------------------------------------------------------- ------ ---------------------------------------------------------------------- Line service/enrol/tests/privacy/provider_test.php ------ ---------------------------------------------------------------------- 82 Call to static method instance() on an unknown class context_user. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 104 Call to static method instance() on an unknown class context_user. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 138 Call to static method instance() on an unknown class context_user. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 176 Call to static method instance() on an unknown class context_user. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 204 Call to static method instance() on an unknown class context_user. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 226 Call to static method instance() on an unknown class context_system. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 242 Call to static method instance() on an unknown class context_user. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 245 Call to static method instance() on an unknown class context_user. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 285 Call to static method instance() on an unknown class context_system. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols ------ ---------------------------------------------------------------------- ------ ---------------------------------------------------------------------- Line tests/event/events_test.php ------ ---------------------------------------------------------------------- 68 Call to static method instance() on an unknown class context_system. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 95 Call to static method instance() on an unknown class context_system. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols ------ ---------------------------------------------------------------------- ------ ----------------------------------------------------------------- Line xmlrpc/server.php ------ ----------------------------------------------------------------- 40 Variable $_SERVER in isset() always exists and is not nullable. ------ ----------------------------------------------------------------- ------ ----------------------------------- Line xmlrpc/serverlib.php ------ ----------------------------------- 504 Undefined variable: $CFG 505 Undefined variable: $CFG 513 Undefined variable: $functionname 513 Undefined variable: $functionname ------ ----------------------------------- -- ------------------------------------------------------------------------------------------------------------- Error -- ------------------------------------------------------------------------------------------------------------- Ignored error pattern #Variable \$ADMIN might not be defined\.# was not matched in reported errors. Ignored error pattern #Variable \$COURSE might not be defined\.# was not matched in reported errors. Ignored error pattern #Variable \$SESSION might not be defined\.# was not matched in reported errors. Ignored error pattern #Variable \$SITE might not be defined\.# was not matched in reported errors. Ignored error pattern #Variable \$USER might not be defined\.# was not matched in reported errors. Ignored error pattern #Variable \$hassiteconfig might not be defined\.# was not matched in reported errors. Ignored error pattern #Method .*\(\) has no return type specified\.# was not matched in reported errors. -- ------------------------------------------------------------------------------------------------------------- [ERROR] Found 37 errors