Commit 17c7150
committed
bug #62614 [Cache] Fix NullAdapter must set taggable (a.dmitryuk)
This PR was squashed before being merged into the 7.4 branch.
Discussion
----------
[Cache] Fix NullAdapter must set taggable
| Q | A
| ------------- | ---
| Branch? | 7.4
| Bug fix? | yes
| New feature? | no <!-- if yes, also update src/**/CHANGELOG.md -->
| Deprecations? | no <!-- if yes, also update UPGRADE-*.md and src/**/CHANGELOG.md -->
| Issues | Fix #... <!-- prefix each issue number with "Fix #"; no need to create an issue if none exists, explain below -->
| License | MIT
After PR #61127 merged NullAdapter still doesn't work as taggable. After tagging there is an error
```
Cache item "tag1" comes from a non tag-aware pool: you cannot tag it.
```
Psalm must fail here same as https://github.com/symfony/symfony/blob/8.1/src/Symfony/Component/Cache/Adapter/AbstractTagAwareAdapter.php#L69
<img width="1896" height="137" alt="image" src="https://github.com/user-attachments/assets/33fb59d4-b048-495d-950c-005dbbaa3ea0" />
Commits
-------
273f1b7 [Cache] Fix NullAdapter must set taggableFile tree
2 files changed
+10
-0
lines changed- src/Symfony/Component/Cache
- Adapter
- Tests/Adapter
2 files changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
141 | 150 | | |
142 | 151 | | |
143 | 152 | | |
| |||
0 commit comments