We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ed3b8b commit 0ec5d46Copy full SHA for 0ec5d46
src/Smoke/Cache/Storage/Adapter/RedisArrayResourceManager.php
@@ -560,9 +560,8 @@ public function getMayorVersion($id)
560
*/
561
public function getMajorVersion($id)
562
{
563
- if (!$this->hasResource($id)) {
564
- throw new Exception\RuntimeException("No resource with id '{$id}'");
565
- }
+ // check resource id and initialize the resource
+ $this->getResource($id);
566
567
$resource = & $this->resources[$id];
568
return (int) $resource['version'];
0 commit comments