Reviewer Submission Not Working OJS 3.4.0.7

Describe the issue or problem
Whenever a reviewer tries to submit their response to the form, either by submitting or doing save later. I encounter this error that I’ve provided below. I have been testing with OJS for a while and I never encountered this error but recently whenever I try to submit a response from a reviewer I get this error and I can’t fix it. Any help would be greatly appreciated, thank you!

What application are you using?
OJS 3.4.0.7

Additional information
PHP Fatal error: Uncaught Error: Call to undefined method APP\facades\Repo::reviewAssignment() in /Users/Bilal/Downloads/ojs/lib/pkp/classes/submission/reviewer/form/PKPReviewerReviewStep3Form.php:347

this is where the error is occurring:

Repo::reviewAssignment()->edit($reviewAssignment, [
            'recommendation' => (int) $this->getData('recommendation'), // save the recommendation to the review assignment
        ]);

Hi @bilalelkhouly,

It looks like you’ve mixed some 3.5.0 pre-release code into your 3.4.0-7 installation.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

Thank you for your response. How can I fix this issue? What is the correct code to do this in the 3.4.0-7 version and where can I find it

Hi @bilalelkhouly,

To fix this, download the OJS 3.4.0-7 package you originally installed and replace any pieces of code you downloaded manually from Github with their original versions.

Regards,
Alec Smecher
Public Knowledge Project Team