Skip to content

Add a Hook for PKPReviewerReviewStep3Form::saveForLater() for stable_3_5_0 #11404

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

Open
wants to merge 1 commit into
base: stable-3_5_0
Choose a base branch
from

Conversation

JakobRing
Copy link

See #11305

@@ -277,6 +278,7 @@ public function saveForLater()
'recommendation' => (int) $this->getData('recommendation'), // save the recommendation to the review assignment
]);

Hook::call(strtolower_codesafe(get_class($this)) . '::saveForLater', array($this));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As of PHP8.2, the PHP strtolower function is no longer locale-dependent, so we've removed the strtolower_codesafe function from our codebase in stable-3_5_0 and main. Use strtolower instead. Also, the [ ... ] syntax is preferred to array( ... ).

Suggested change
Hook::call(strtolower_codesafe(get_class($this)) . '::saveForLater', array($this));
Hook::call(strtolower(get_class($this)) . '::saveForLater', [$this]);

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

Successfully merging this pull request may close these issues.

2 participants