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

Turnitin SDK Deprecated: Return type of Integrations\PhpSdk\Soap::__doRequest #663

Open
tlock opened this issue Jun 12, 2023 · 0 comments
Open

Comments

@tlock
Copy link

tlock commented Jun 12, 2023

Hi,

Do we just change the return value to match $one_way = false or is there a reason why it is different as noted by PHP 8.1?

Deprecated: Return type of Integrations\PhpSdk\Soap::__doRequest($request, $location, $action, $version, $one_way = null) should either be compatible with SoapClient::__doRequest(string $request, string $location, string $action, int $version, bool $oneWay = false): ?string, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in ./plagiarism/turnitin/vendor/Integrations/phpsdk-package/src/Soap.php on line 369.
Stack trace:
line 369 of ./plagiarism/turnitin/vendor/Integrations/phpsdk-package/src/Soap.php: PHP Deprecated thrown
line 444 of ./plagiarism/turnitin/vendor/composer/ClassLoader.php: call to include()
line 322 of ./plagiarism/turnitin/vendor/composer/ClassLoader.php: call to Composer\Autoload\includeFile()
line 12 of ./plagiarism/turnitin/vendor/Integrations/phpsdk-package/src/MembershipSoap.php: call to Composer\Autoload\ClassLoader->loadClass()
line 444 of ./plagiarism/turnitin/vendor/composer/ClassLoader.php: call to include()
line 322 of ./plagiarism/turnitin/vendor/composer/ClassLoader.php: call to Composer\Autoload\includeFile()
line 879 of ./plagiarism/turnitin/vendor/Integrations/phpsdk-package/src/TurnitinAPI.php: call to Composer\Autoload\ClassLoader->loadClass()
line 406 of ./plagiarism/turnitin/classes/turnitin_user.class.php: call to Integrations\PhpSdk\TurnitinAPI->createMembership()
line 104 of ./plagiarism/turnitin/classes/turnitin_view.class.php: call to turnitin_user->join_user_to_class()
line 380 of ./plagiarism/turnitin/lib.php: call to turnitin_view->add_elements_to_settings_form()
line 3037 of ./plagiarism/turnitin/lib.php: call to plagiarism_plugin_turnitin->get_form_elements_module()
line 992 of ./course/moodleform_mod.php: call to plagiarism_turnitin_coursemodule_standard_elements()
line 878 of ./course/moodleform_mod.php: call to moodleform_mod->plugin_extend_coursemodule_standard_elements()
line 363 of ./mod/quiz/mod_form.php: call to moodleform_mod->standard_coursemodule_elements()
line 214 of ./lib/formslib.php: call to mod_quiz_mod_form->definition()
line 131 of ./course/moodleform_mod.php: call to moodleform->__construct()
line 58 of ./mod/quiz/mod_form.php: call to moodleform_mod->__construct()
line 152 of ./course/modedit.php: call to mod_quiz_mod_form->__construct()

Regards,
Tim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants