Skip to content

Commit 0238ae9

Browse files
added key
1 parent 1bc788c commit 0238ae9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Migration/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function remove(Resource $resource): void
178178
throw new \Exception('Resource does not exist in cache');
179179
}
180180
}
181-
if (! in_array($resource, $this->cache[$resource->getName()])) {
181+
if (! in_array($resource, $this->cache[$key])) {
182182
throw new \Exception('Resource does not exist in cache');
183183
}
184184

0 commit comments

Comments
 (0)