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

We don't want to construct a new object here #131

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

michael-grunder
Copy link
Member

We just want to receive the underlying \Relay\Relay object and use it in the cache, not create a new one.

Fixes #130

We just want to receive the underlying `\Relay\Relay` object and use it
in the cache, not create a new one.

Fixes #130
@michael-grunder michael-grunder added the bug Something isn't working label Feb 26, 2024
@szepeviktor
Copy link
Contributor

I've never seen new $object, I had to read the docs.
https://www.php.net/manual/en/language.oop5.basic.php#example-598

@szepeviktor
Copy link
Contributor

@michael-grunder Could you add a test that fails without this PR?

@michael-grunder
Copy link
Member Author

@szepeviktor I could but are there even tests here? I just see benchmarks and we don't have PHPUnit in the project.

@szepeviktor
Copy link
Contributor

szepeviktor commented Feb 26, 2024

That is shocking news.
Take my idea as cancelled.

@tillkruss tillkruss merged commit 354186b into main Feb 26, 2024
3 of 5 checks passed
@tillkruss tillkruss deleted the dont-duplicate-cache-object branch February 26, 2024 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PSR SimpleCache doesn't actually try to connect to the cache
3 participants