[PR #21] [MERGED] Avoiding fatalities when using RedisStorage #54

Closed
opened 2026-01-23 11:35:03 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/KeyValueStore/pull/21
Author: @andreyvital
Created: 4/16/2015
Status: Merged
Merged: 4/16/2015
Merged by: @guilhermeblanco

Base: masterHead: redis/improvements


📝 Commits (2)

  • f164523 Ensuring that json_decode will return assoc
  • 66d7ba9 Fixing doc s/$id/$key (RedisStorage::getKeyName)

📊 Changes

1 file changed (+5 additions, -4 deletions)

View changed files

📝 lib/Doctrine/KeyValueStore/Storage/RedisStorage.php (+5 -4)

📄 Description

The main goal here is json_decode(..., true); as UoW doesn't handle stdClass, it avoids Fatal error: Cannot use object of type stdClass as array.

🍻


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/KeyValueStore/pull/21 **Author:** [@andreyvital](https://github.com/andreyvital) **Created:** 4/16/2015 **Status:** ✅ Merged **Merged:** 4/16/2015 **Merged by:** [@guilhermeblanco](https://github.com/guilhermeblanco) **Base:** `master` ← **Head:** `redis/improvements` --- ### 📝 Commits (2) - [`f164523`](https://github.com/doctrine/KeyValueStore/commit/f164523b41e40bb2804a29be2e5e25711864de36) Ensuring that `json_decode` will return assoc - [`66d7ba9`](https://github.com/doctrine/KeyValueStore/commit/66d7ba901fb30cb4e3dc5cbacd4d2f96261c85f6) Fixing doc `s/$id/$key` (RedisStorage::getKeyName) ### 📊 Changes **1 file changed** (+5 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/KeyValueStore/Storage/RedisStorage.php` (+5 -4) </details> ### 📄 Description The main goal here is `json_decode(..., true);` as UoW doesn't handle **stdClass**, it avoids `Fatal error: Cannot use object of type stdClass as array`. :beers: --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-23 11:35:03 +01:00
admin closed this issue 2026-01-23 11:35:03 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/KeyValueStore#54