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

#16489 - Remove usage of 2nd argument of apcu_fetch() function #16495

Closed
wants to merge 2 commits into from

Conversation

Jeckerson
Copy link
Member

Hello!

  • Type: bug fix

In raising this pull request, I confirm the following:

  • I have read and understood the Contributing Guidelines
  • I have checked that another pull request for this purpose does not exist
  • I wrote some tests for this PR
  • I have updated the relevant CHANGELOG
  • I have created a PR for the documentation about this change

Thanks

@Jeckerson Jeckerson requested a review from niden January 6, 2024 20:49
@Jeckerson Jeckerson self-assigned this Jan 6, 2024
@@ -208,7 +208,7 @@ class Apcu extends AbstractAdapter
*/
protected function doGet(string key)
{
return this->phpApcuFetch(this->getPrefixedKey(key));
return apcu_fetch(this->getPrefixedKey(key));
Copy link
Member

Choose a reason for hiding this comment

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

Let's keep the phpApcuFetch. It is helpful when mocking in tests.

@niden
Copy link
Member

niden commented Jan 6, 2024

Closing after talking with Jeckerson : merging the duplicate one:

#16496

@niden niden closed this Jan 6, 2024
@Jeckerson Jeckerson deleted the #16489-adjust-apcu_fetch branch January 15, 2024 23:16
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.

[BUG]: apcu_fetch(): Argument 2 ($success) must be passed by reference
2 participants